Re: pqxx::Connection("dbname=name");

From: jtv <jtv(at)xs4all(dot)nl>
To: CG <exai17(at)yahoo(dot)de>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: pqxx::Connection("dbname=name");
Date: 2002-06-28 14:25:50
Message-ID: 20020628142549.GF42789@xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Thu, Jun 27, 2002 at 05:00:22PM +0200, CG wrote:
>
> i tried to create a pqxx::Connection with an NOT existing dbserver and my
> program aborts.
>
> Is this correct?

Obviously not! The most likely explanation is that you linked your
program with a dynamic version of libpqxx, and either:

(1) the library and your program were compiled with different compilers
or different versions of the same compiler; or

(2) the system loader could not find the dynamic pqxx library.

I'd have to know which platform you're on and which compiler(s) you're
using to say more, but one thing you could try right away is *not*
including libpqxx in the libraries to link with, but linking in the
static version of the library as if it were a normal object file. This
should be possible on most platforms; this version of the library will
be called LIBPQXX.LIB on Windows or libpqxx.so on pretty much any other
system.

Jeroen

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Alexaki Sofia 2002-06-28 16:17:23 Compile problem in PostgreSQL v7.2.1
Previous Message Bruce Badger 2002-06-28 12:54:53 Frontend - Backend protocol change?