Thread: Libpq++ & Borland C++

Libpq++ & Borland C++

From
Sagine E.Ferrus
Date:
I want to use Libpq++ wit borland c++. I try to use libpq++ libs in my application but i keep getting linker errors,
Cananyone help Please.  I was not able to use the available make files to compile the files so i had  to do it in
borlandand create a package and add all the files to the package.  I dont know what more to do.  Here is my code :
 

...
PGconn * connection;
connection = PQconnectdb("dbname=db_gatecop");
PQfinish(connection);
...

and here is the error message:

[Linker Error] Unresolved external '_PQconnectdb' referenced from testing.Obj





_____________________________________________________________
Visit our Caribbean Community at http://www.islanderonline.com


Re: Libpq++ & Borland C++

From
"Jeroen T. Vermeulen"
Date:
On Mon, Jul 21, 2003 at 06:11:58AM -0700, Sagine E.Ferrus wrote:
> and here is the error message:
> 
> [Linker Error] Unresolved external '_PQconnectdb' referenced from testing.Obj

Since libpq++ uses libpq (as does the new C++ interface, libpqxx) you'll
need to link with libpq as well.


Jeroen