Erwin Rol <erwin(at)muffin(dot)org> writes:
> It looks like a namespace problem. string is in the std namespace, and
> just using "string" will not work unless you have a "using namespace
> std;" or by putting "std::string" instead of "string".
It might be a good idea to look at libpqxx from gborg.postgresql.org.
libpq++ is old, crufty, and not really being maintained (it's not part
of the standard PG distribution as of 7.3).
regards, tom lane