[Libpqxx-general] Creating a connection object
Vincent Predoehl
vpredoehl at phoenixwebgroup.com
Thu Jun 12 15:53:50 UTC 2008
I'm want to use libpqxx integration in my app. The tutorial says to
create a connection using:
connection Conn("dbname=test");
The correct header to use appears to be #include <pqxx/connection>,
but I get this compile error:
/usr/local/include/pqxx/basic_connection.hxx:45: error: redefinition
of 'class pqxx::basic_connection<CONNECTPOLICY>'
/usr/local/include/pqxx/basic_connection.hxx:47: error: previous
definition of 'class pqxx::basic_connection<CONNECTPOLICY>'
How exactly are you suppose to instantiate the connection object?
-- VP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/libpqxx-general/attachments/20080612/18091f2d/attachment.html
More information about the Libpqxx-general
mailing list