Skip site navigation (1) Skip section navigation (2)

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

From: pgsql-hackers(at)thewrittenword(dot)com
To: pgsql-hackers(at)postgresql(dot)org
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: libpq++ current sources don't compile with older C++ compilers
Date: 2001-08-28 02:16:50
Message-ID: 20010827211650.A50825@oolong.il.thewrittenword.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-interfaces
On Mon, Aug 27, 2001 at 04:16:57PM -0400, Tom Lane wrote:
> 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?

What version of aCC are you using? Newer releases support -AA which
provide the std namespace. This, of course, doesn't answer your
question.

-- 
albert chin (china(at)thewrittenword(dot)com)

In response to

Responses

pgsql-hackers by date

Next:From: Joe ConwayDate: 2001-08-28 02:20:33
Subject: Re: Upcoming events
Previous:From: Christopher Kings-LynneDate: 2001-08-28 02:09:45
Subject: RE: Upcoming events

pgsql-interfaces by date

Next:From: Tom LaneDate: 2001-08-28 03:34:31
Subject: Re: libpq++ current sources don't compile with older C++ compilers
Previous:From: Tom LaneDate: 2001-08-27 20:16:57
Subject: libpq++ current sources don't compile with older C++ compilers

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group