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

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-interfaces(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: libpq++ current sources don't compile with older C++ compilers
Date: 2001-08-28 16:34:16
Message-ID: 200108281634.f7SGYG304424@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

Tom, I am sure it is an oversight. Can you fix it?

> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-08-28 16:38:06 Re: Upcoming events
Previous Message Peter Eisentraut 2001-08-28 15:38:39 Re: Status of ipcclean

Browse pgsql-interfaces by date

  From Date Subject
Next Message Billy G. Allie 2001-08-29 01:50:48 Re: PQgetvalue and User defined types/Arrays fields
Previous Message Tom Lane 2001-08-28 03:34:31 Re: libpq++ current sources don't compile with older C++ compilers