Re: C++ interface build on FreeBSD 4.2 broken?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: C++ interface build on FreeBSD 4.2 broken?
Дата
Msg-id Pine.LNX.4.30.0101201658110.1033-100000@peter.localdomain
обсуждение исходный текст
Ответ на C++ interface build on FreeBSD 4.2 broken?  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Ответы Re: C++ interface build on FreeBSD 4.2 broken?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tatsuo Ishii writes:

> c++ -pipe -O3 -mpentiumpro -Wall -fpic -DPIC -I/usr/local/ssl/include
> -I../../../src/include -I../../../src/interfaces/libpq  -c -o pgconnec
> tion.o pgconnection.cc
> In file included from ../../../src/include/postgres.h:40,
>                  from pgconnection.h:41,
>                  from pgconnection.cc:18:
> ../../../src/include/c.h:997: conflicting types for `int sys_nerr'
> /usr/include/stdio.h:224: previous declaration as `const int sys_nerr'
> gmake[3]: *** [pgconnection.o] Error 1

C++ apparently doesn't allow this, but C does.  So you have to put #ifndef
__cplusplus at the appropriate place in c.h.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: AW: AW: AW: Re: tinterval - operator problems on AIX
Следующее
От: Tom Lane
Дата:
Сообщение: Re: status of 64bit ints? was: Re: Transaction ID wraparound: problem and proposed solution