Libpq++ & Borland C++

Поиск
Список
Период
Сортировка
Искать

Libpq++ & Borland C++

От:
Sagine E.Ferrus <sagine@islanderonline.com>
Дата:
I want to use Libpq++ wit borland c++. I try to use libpq++ libs in my application but i keep getting linker errors, Can anyone help Please.  I was not able to use the available make files to compile the files so i had  to do it in borland and 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++

От:
"Jeroen T. Vermeulen" <jtv@xs4all.nl>
Дата:
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


FAQ