From: Julie Russell <julie.russell@throughput.com.au>
To: pgsql-interfaces@postgresql.org
Subject: libpqxx
Date: Wed, 12 Nov 2003 05:25:05 +1100
Message-ID: <CAEDLLCOCGBPMAAFIFOCOELECAAA.julie.russell@throughput.com.au> (raw)
Hi Everyone,
I have migrated to libpqxx which seems to fix up all the errors I was
getting from libpq++. However, the class I implemented the database stuff in
compiles fine, but as soon as I include that class in another class it gives
me compiler errors from deep in libpqxx.
Following is the some of the type of output I'm getting:
In file included from DatabaseHandler.h:22,
from Scheduler.h:32,
from Scheduler.cpp:17:
/usr/include/pqxx/connection.h:185: error: extraneous `int' ignored
/usr/include/pqxx/connection.h:185: error: parse error before `)' token
/usr/include/pqxx/connection.h: In member function `const char*
pqxx::Connection::DbName() const':
/usr/include/pqxx/connection.h:128: error: `m_Conn' undeclared (first use
this
function)
/usr/include/pqxx/connection.h:128: error: (Each undeclared identifier is
reported only once for each function it appears in.)
/usr/include/pqxx/connection.h: In member function `const char*
pqxx::Connection::Options() const':
I assuming that it's a C/C++ compatibility problem, however I am so new to
both languages, I am not sure. Has anyone come across this before? Any
suggestions on how to fix it?
Regards,
Julie.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: julie.russell@throughput.com.au
Subject: Re: libpqxx
In-Reply-To: <CAEDLLCOCGBPMAAFIFOCOELECAAA.julie.russell@throughput.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox