ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: sisyphus@altlinux.ru
Subject: Re: Re[2]: [sisyphus] Вопрос про gcc
Date: Tue, 28 Jan 2003 16:06:40 +0300
Message-ID: <20030128160640.04136e18.vsu@altlinux.ru> (raw)
In-Reply-To: <528247375.20030127233913@altlinux.ru>

On Mon, 27 Jan 2003 23:39:13 +0300
Volkov Serge <vserge@altlinux.ru> wrote:

> Hello Sergey,
> 
> Monday, January 27, 2003, 6:51:00 PM, you wrote:
> 
> SV> On Mon, 27 Jan 2003 16:38:49 +0300
> SV> Volkov Serge <vserge@altlinux.ru> wrote:
> 
> >> Прошу сообщество меня извинить, не не могу понять как раскрываются
> >> макросы gcc -Dмарос
> 
> SV> А что там непонятного? info gcc, Preprocessor Options:
> 
> SV> `-D NAME'
> SV>      Predefine NAME as a macro, with definition `1'.
> 
> SV> `-D NAME=DEFINITION'
> SV>      Predefine NAME as a macro, with definition DEFINITION.  ...
> 
> Означает ли это, что при линковке программы (gcc -shared
> -DWITH_OPENLDAP mod_auth_ldap.o aut_ldap_tralala.o) это не вызывает
> линковку с необходимыми библиотеками, а только вызывает подключение в
> исходном коде строк типа
> #ifdef WITH_OPENLDAP
>  тру-ля-ля
> #endif

Именно так - -D обрабатывается только препроцессором. Для линковки
нужно добавлять соответствующие -lXXX.

Вообще у gcc есть извращённые опции типа -pthread, влияющие на всё
подряд, но в данном случае такого не происходит.


      parent reply	other threads:[~2003-01-28 13:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-27 13:38 [sisyphus] ÷ÏÐÒÏÓ ÐÒÏ gcc Volkov Serge
2003-01-27 15:51 ` [sisyphus] Вопрос про gcc Sergey Vlasov
2003-01-27 20:39   ` Re[2]: [sisyphus] ÷ÏÐÒÏÓ ÐÒÏ gcc Volkov Serge
2003-01-27 22:21     ` [sisyphus] Re: Вопрос про gcc Michael Shigorin
2003-01-28  8:30     ` Re[3]: [sisyphus] ÷ÏÐÒÏÓ ÐÒÏ gcc Sergey Krivulja
2003-01-28 13:06     ` Sergey Vlasov [this message]

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=20030128160640.04136e18.vsu@altlinux.ru \
    --to=vsu@altlinux.ru \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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