ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] ÷ÏÐÒÏÓ ÐÒÏ gcc
@ 2003-01-27 13:38 Volkov Serge
  2003-01-27 15:51 ` [sisyphus] Вопрос про gcc Sergey Vlasov
  0 siblings, 1 reply; 6+ messages in thread
From: Volkov Serge @ 2003-01-27 13:38 UTC (permalink / raw)
  To: sisyphus

Добрый день

Прошу сообщество меня извинить, не не могу понять как раскрываются
макросы gcc -Dмарос

Это связано со сборкой mod_auth_ldap

подскажите пожалуйста ?!

  

-- 
Best regards,
 Volkov                          mailto:vserge@altlinux.ru




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [sisyphus] Вопрос про gcc
  2003-01-27 13:38 [sisyphus] ÷ÏÐÒÏÓ ÐÒÏ gcc Volkov Serge
@ 2003-01-27 15:51 ` Sergey Vlasov
  2003-01-27 20:39   ` Re[2]: [sisyphus] ÷ÏÐÒÏÓ ÐÒÏ gcc Volkov Serge
  0 siblings, 1 reply; 6+ messages in thread
From: Sergey Vlasov @ 2003-01-27 15:51 UTC (permalink / raw)
  To: sisyphus

On Mon, 27 Jan 2003 16:38:49 +0300
Volkov Serge <vserge@altlinux.ru> wrote:

> Прошу сообщество меня извинить, не не могу понять как раскрываются
> макросы gcc -Dмарос

А что там непонятного? info gcc, Preprocessor Options:

`-D NAME'
     Predefine NAME as a macro, with definition `1'.

`-D NAME=DEFINITION'
     Predefine NAME as a macro, with definition DEFINITION.  ...


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re[2]: [sisyphus] ÷ÏÐÒÏÓ ÐÒÏ gcc
  2003-01-27 15:51 ` [sisyphus] Вопрос про gcc Sergey Vlasov
@ 2003-01-27 20:39   ` Volkov Serge
  2003-01-27 22:21     ` [sisyphus] Re: Вопрос про gcc Michael Shigorin
                       ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Volkov Serge @ 2003-01-27 20:39 UTC (permalink / raw)
  To: Sergey Vlasov

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




-- 
Best regards,
 Volkov                            mailto:vserge@altlinux.ru




^ permalink raw reply	[flat|nested] 6+ messages in thread

* [sisyphus] Re: Вопрос про gcc
  2003-01-27 20:39   ` Re[2]: [sisyphus] ÷ÏÐÒÏÓ ÐÒÏ gcc Volkov Serge
@ 2003-01-27 22:21     ` Michael Shigorin
  2003-01-28  8:30     ` Re[3]: [sisyphus] ÷ÏÐÒÏÓ ÐÒÏ gcc Sergey Krivulja
  2003-01-28 13:06     ` Re[2]: [sisyphus] Вопрос про gcc Sergey Vlasov
  2 siblings, 0 replies; 6+ messages in thread
From: Michael Shigorin @ 2003-01-27 22:21 UTC (permalink / raw)
  To: sisyphus

On Mon, Jan 27, 2003 at 11:39:13PM +0300, Volkov Serge wrote:
> SV> `-D NAME'
> SV>      Predefine NAME as a macro, with definition `1'.
> Означает ли это, что при линковке программы (gcc -shared
> -DWITH_OPENLDAP mod_auth_ldap.o aut_ldap_tralala.o) это не вызывает
> линковку с необходимыми библиотеками, а только вызывает подключение в
> исходном коде строк типа
> #ifdef WITH_OPENLDAP
>  тру-ля-ля
> #endif

Да.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re[3]: [sisyphus] ÷ÏÐÒÏÓ ÐÒÏ gcc
  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     ` Sergey Krivulja
  2003-01-28 13:06     ` Re[2]: [sisyphus] Вопрос про gcc Sergey Vlasov
  2 siblings, 0 replies; 6+ messages in thread
From: Sergey Krivulja @ 2003-01-28  8:30 UTC (permalink / raw)
  To: Volkov Serge

Hello Volkov,

Monday, January 27, 2003, 11:39:13 PM, you 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.  ...

VS> Означает ли это, что при линковке программы (gcc -shared
VS> -DWITH_OPENLDAP mod_auth_ldap.o aut_ldap_tralala.o) это не вызывает
VS> линковку с необходимыми библиотеками, а только вызывает подключение в
VS> исходном коде строк типа
VS> #ifdef WITH_OPENLDAP
VS>  тру-ля-ля
VS> #endif
Последнее.
-- 
Best regards,
 Sergey                            mailto:skrivulja@erec.ru



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re[2]: [sisyphus] Вопрос про gcc
  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
  2 siblings, 0 replies; 6+ messages in thread
From: Sergey Vlasov @ 2003-01-28 13:06 UTC (permalink / raw)
  To: sisyphus

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, влияющие на всё
подряд, но в данном случае такого не происходит.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-01-28 13:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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     ` Re[2]: [sisyphus] Вопрос про gcc Sergey Vlasov

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