Re: C++ interface build on FreeBSD 4.2 broken? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: C++ interface build on FreeBSD 4.2 broken?
Date
Msg-id Pine.LNX.4.30.0101201658110.1033-100000@peter.localdomain
Whole thread Raw
In response to C++ interface build on FreeBSD 4.2 broken?  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Responses Re: C++ interface build on FreeBSD 4.2 broken?
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: AW: AW: AW: Re: tinterval - operator problems on AIX
Next
From: Tom Lane
Date:
Subject: Re: status of 64bit ints? was: Re: Transaction ID wraparound: problem and proposed solution