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

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: C++ interface build on FreeBSD 4.2 broken?
Date: 2001-01-20 15:59:14
Message-ID: Pine.LNX.4.30.0101201658110.1033-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-01-20 16:03:50 Re: status of 64bit ints? was: Re: Transaction ID wraparound: problem and proposed solution
Previous Message Peter Eisentraut 2001-01-20 15:56:12 Re: AW: AW: AW: Re: tinterval - operator problems on AIX