| From: | "Julie Russell" <julie(dot)russell(at)throughput(dot)com(dot)au> |
|---|---|
| To: | <pgsql-interfaces(at)postgresql(dot)org> |
| Subject: | libpqxx |
| Date: | 2003-11-11 18:25:05 |
| Message-ID: | CAEDLLCOCGBPMAAFIFOCOELECAAA.julie.russell@throughput.com.au |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-interfaces |
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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeroen T. Vermeulen | 2003-11-11 18:42:56 | Re: libpqxx |
| Previous Message | Jeroen T. Vermeulen | 2003-11-10 16:41:08 | Re: libpq++ and kdevelop |