ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Andrey Kutuzov <kender@wscb.ru>
To: Michael Holzman <community@altlinux.ru>
Subject: Re: [Comm] не находит lstdc++ при компиляции
Date: Mon, 28 Mar 2005 13:57:29 +0600
Message-ID: <165447802421.20050328135729@wscb.ru> (raw)
In-Reply-To: <c00cf0503272232483c3744@mail.gmail.com>

Моё почтение, Michael!

Monday, March 28, 2005, 12:32:19 PM, you wrote:
MH> самом Makefile указано имя компилятора и линкера (либо напрямую в
MH> команде либо через макрос). Я, в таких случаях, открываю этот Makefile
MH> и меняю имя на необходимое мне.Эт, конечно, грубо и не
MH> по-джентельменски, но зато обычно срабатывает.
MH> Да, упоминание библиотеки  libstdc++ в этом случае можно убрать из
MH> строки линковки. g++ обязан сам ее подставить из правильного места :-)
Про libstdc++ в исходниках вообще нет ни слова. Собственно и gcc и этот самый
lstdc++ упоминаются там только в файле common_mak, который запускается в начале
Makefile'а. Упоминаются вот в таком виде (прошу прощения за длинные строки):

ifeq ($(libmode), static)
        ct := $(ct)st
        lib_ext := a
        LDFLAGS := -O3 -nostdlib 
        ifneq ($(stlport), 1)
                LDPATH :=
                LDLIBS := /usr/lib/crt1.o /usr/lib/crti.o /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/crtbegin.o -L/usr/local/gcc3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2 -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../.. -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/crtend.o /usr/lib/crtn.o
        endif

Убрать отсюда -lstdc++? И куда подставлять g++?

-- 
Best regards - Andrey
mailto:kender@wscb.ru



  reply	other threads:[~2005-03-28  7:57 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-22  6:45 Andrey Kutuzov
2005-03-22  8:07 ` Alexey Rusakov
2005-03-23  5:05   ` Andrey Kutuzov
2005-03-25  4:49     ` Andrey Kutuzov
2005-03-25  8:01       ` Drool
2005-03-25  8:50         ` [Comm] " max
2005-03-25  9:02         ` [Comm] " Andrey Kutuzov
2005-03-25  9:31           ` Yarik
2005-03-25  9:36             ` Yarik
2005-03-25  9:44               ` Andrey Kutuzov
2005-03-25 10:51                 ` Alexey Rusakov
2005-03-28  5:58                   ` Andrey Kutuzov
2005-03-25 11:09                 ` Michael Holzman
2005-03-28  5:53                   ` Andrey Kutuzov
2005-03-28  6:32                     ` Michael Holzman
2005-03-28  7:57                       ` Andrey Kutuzov [this message]
2005-03-28  8:30                         ` Michael Holzman
2005-03-25 10:34             ` Andrey Rahmatullin
2005-03-25 10:49             ` Alexey Rusakov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=165447802421.20050328135729@wscb.ru \
    --to=kender@wscb.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git