libpq++ current sources don't compile with older C++ compilers

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-interfaces(at)postgreSQL(dot)org, pgsql-hackers(at)postgreSQL(dot)org
Subject: libpq++ current sources don't compile with older C++ compilers
Date: 2001-08-27 20:16:57
Message-ID: 20461.998943417@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

Today I did something I usually do about once per release cycle: try to
build the system with HP's vendor cc, rather than gcc which I prefer.
This usually turns up some portability issues, and indeed I found some.
One that I'm not entirely sure about how to fix is that libpq++ no
longer builds at all:

aCC +z -I../../../src/interfaces/libpq -I../../../src/include -I/usr/local/include -c -o pgconnection.o pgconnection.cc
Error 56: "pgconnection.cc", line 20 # Namespaces are not yet implemented.
using namespace std;
^^^^^^^^^^^^^^^^^^^^

Given that we have a HAVE_NAMESPACE_STD configure symbol, I do not
understand why unconditional "using"s have been inserted into the
libpq++ files. Shouldn't these be protected by #ifdef
HAVE_NAMESPACE_STD? Or is there a different fix that's more
appropriate?

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-08-27 20:27:17 Re: extern + static issue in datetime.c
Previous Message Tom Lane 2001-08-27 20:05:21 Re: extern + static issue in datetime.c

Browse pgsql-interfaces by date

  From Date Subject
Next Message pgsql-hackers 2001-08-28 02:16:50 Re: libpq++ current sources don't compile with older C++ compilers
Previous Message Björn Lundin 2001-08-27 19:45:27 How does pg work?