Thread: libpq++

libpq++

From
oberpwd@anubis.network.com (Wade D. Oberpriller)
Date:
Hello,

I am using PostgreSQL v7.0.2. I compiled myself with gcc/g++ v2.7.2.2 on
Solaris 2.5.1. In libpq++, I get compiler warnings complaining that
namespaces are mostly broken in this version of g++. When I attempt to run a
piece of client code that was linked with libpq++.so, I get a symbol referencing
error.

Here is some of the output when I compile libpq++:

c++ -g -O2 -I../../backend -I../../include -I../../interfaces/libpq -fPIC   -c pgconnection.cc
In file included from pgconnection.cc:18:
pgconnection.h:46: warning: namespaces are mostly broken in this version of g++
c++ -g -O2 -I../../backend -I../../include -I../../interfaces/libpq -fPIC   -c pgdatabase.cc
In file included from pgdatabase.h:26,
                 from pgdatabase.cc:18:
pgconnection.h:46: warning: namespaces are mostly broken in this version of g++
c++ -g -O2 -I../../backend -I../../include -I../../interfaces/libpq -fPIC   -c pgtransdb.cc
In file included from pgdatabase.h:26,
                 from pgtransdb.h:26,
                 from pgtransdb.cc:18:
pgconnection.h:46: warning: namespaces are mostly broken in this version of g++
c++ -g -O2 -I../../backend -I../../include -I../../interfaces/libpq -fPIC   -c pgcursordb.cc
In file included from pgdatabase.h:26,
                 from pgtransdb.h:26,
                 from pgcursordb.h:26,
                 from pgcursordb.cc:18:


I've read the little README file on libpq++, and it states that libpq++ was
only tested with g++ v2.7.2.1. I'm wondering did something get broken in this
new version of the compiler?

I also compiled with libpq.so and it seems to work fine.

Wade Oberpriller

Re: libpq++

From
Peter Eisentraut
Date:
Wade D. Oberpriller writes:

> pgconnection.h:46: warning: namespaces are mostly broken in this version of g++

That's probably a good hint to upgrade your compiler.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/