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 040C3D1B51B for ; Tue, 11 Nov 2003 22:52:45 +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 41257-10 for ; Tue, 11 Nov 2003 18:52:16 -0400 (AST) Received: from smtpzilla1.xs4all.nl (smtpzilla1.xs4all.nl [194.109.127.137]) by svr1.postgresql.org (Postfix) with ESMTP id 437BFD1B515 for ; Tue, 11 Nov 2003 18:52:13 -0400 (AST) Received: from xs1.xs4all.nl (xs1.xs4all.nl [194.109.21.2]) by smtpzilla1.xs4all.nl (8.12.9/8.12.9) with ESMTP id hABMqDHb028985; Tue, 11 Nov 2003 23:52:14 +0100 (CET) Received: from xs1.xs4all.nl (jtv@localhost.xs4all.nl [127.0.0.1]) by xs1.xs4all.nl (8.12.10/8.12.9) with ESMTP id hABMqDxE032663; Tue, 11 Nov 2003 23:52:13 +0100 (CET) (envelope-from jtv@xs4all.nl) Received: (from jtv@localhost) by xs1.xs4all.nl (8.12.10/8.12.9/Submit) id hABMqDTg032662; Tue, 11 Nov 2003 23:52:13 +0100 (CET) (envelope-from jtv) Date: Tue, 11 Nov 2003 23:52:13 +0100 From: "Jeroen T. Vermeulen" To: Julie Russell Cc: pgsql-interfaces@postgresql.org Subject: Re: libpqxx Message-ID: <20031111225213.GA30523@xs4all.nl> Mail-Followup-To: Julie Russell , pgsql-interfaces@postgresql.org References: <20031111184256.GA4814@xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/13 X-Sequence-Number: 4571 On Wed, Nov 12, 2003 at 09:42:28AM +1100, Julie Russell wrote: > > I downloaded libpqxx-2.0.0 from > http://gborg.postgresql.org/project/libpqxx/download/download.php That ought to be fine... Did you include or the now deprecated ? (Note the notice at the top of the .h file). OTOH, I've still got the cursor and cachedresult in there which also compiles fine using the older .h headers! Oh, did you remember to run the configure script before building, like the README says? Are you running on a Unix-like system? > I implemented the code in class DatabaseHandler which compiles fine, but as > soon as I #include "DatabaseHandler.h" in any other class, it pulls up > compiler errors from libpqxx. I do have #ifdefs so the header shouldn't be > included twice... Any ideas? Shouldn't be needed. The header files without the .h or .hxx filename suffix will protect themselves against multiple inclusion. If there's no legal problem or anything like that, I'd like to take a look at your class and see if I can reproduce the problem. It'd also make the search a lot easier... I'd probably just need the headers and the exact sequence in which you include them. Right now I just haven't got a lot to go on! Jeroen