pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeroen T. Vermeulen <jtv@xs4all.nl>
To: Julie Russell <julie.russell@throughput.com.au>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: libpqxx
Date: Tue, 11 Nov 2003 23:52:13 +0100
Message-ID: <20031111225213.GA30523@xs4all.nl> (raw)
In-Reply-To: <CAEDLLCOCGBPMAAFIFOCOELFCAAA.julie.russell@throughput.com.au>
References: <20031111184256.GA4814@xs4all.nl>
	<CAEDLLCOCGBPMAAFIFOCOELFCAAA.julie.russell@throughput.com.au>

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 <pqxx/connection> or the now
deprecated <pqxx/connection.h>?  (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




view thread (4+ messages)

Message-ID: <20031111225213.GA30523@xs4all.nl>
Permalink:  ../20031111225213.GA30523@xs4all.nl/
Also on:    postgresql.org/message-id/20031111225213.GA30523@xs4all.nl

 · 

reply

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: jtv@xs4all.nl, julie.russell@throughput.com.au
  Subject: Re: libpqxx
  In-Reply-To: <20031111225213.GA30523@xs4all.nl>

* 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