X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2AE0FD1B50D for ; Tue, 11 Nov 2003 18:25:44 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 00337-06 for ; Tue, 11 Nov 2003 14:25:13 -0400 (AST) Received: from gizmo11bw.bigpond.com (unknown [144.140.70.21]) by svr1.postgresql.org (Postfix) with SMTP id CB2CDD1B54C for ; Tue, 11 Nov 2003 14:25:10 -0400 (AST) Received: (qmail 12868 invoked from network); 11 Nov 2003 17:15:26 -0000 Received: from unknown (HELO udderish) (144.135.24.84) by gizmo11bw.email.bigpond.com with SMTP; 11 Nov 2003 17:15:26 -0000 Received: from cpe-203-51-177-154.vic.bigpond.net.au ([203.51.177.154]) by bwmam06bpa.bigpond.com(MAM REL_3_3_2d 53/1007206); 12 Nov 2003 04:25:07 From: "Julie Russell" To: Subject: libpqxx Date: Wed, 12 Nov 2003 05:25:05 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/9 X-Sequence-Number: 4567 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.