Re: pqxx::Connection("dbname=name");
От | jtv |
---|---|
Тема | Re: pqxx::Connection("dbname=name"); |
Дата | |
Msg-id | 20020628142549.GF42789@xs4all.nl обсуждение исходный текст |
Ответ на | pqxx::Connection("dbname=name"); ("CG" <exai17@yahoo.de>) |
Ответы |
Re: pqxx::Connection("dbname=name");
|
Список | 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
В списке pgsql-interfaces по дате отправления: