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      [EMAIL PROTECTED]       http://yi.org/peter-e/

Reply via email to