pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Libpq++ & Borland C++
2+ messages / 2 participants
[nested] [flat]

* Libpq++ & Borland C++
@ 2003-07-21 13:11  Sagine E.Ferrus <sagine@islanderonline.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Sagine E.Ferrus @ 2003-07-21 13:11 UTC (permalink / raw)
  To: pgsql-interfaces

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Libpq++ & Borland C++
@ 2003-07-21 13:52  Jeroen T. Vermeulen <jtv@xs4all.nl>
  parent: Sagine E.Ferrus <sagine@islanderonline.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Jeroen T. Vermeulen @ 2003-07-21 13:52 UTC (permalink / raw)
  To: Sagine E.Ferrus <sagine@islanderonline.com>; +Cc: pgsql-interfaces

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-07-21 13:52 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-07-21 13:11 Libpq++ & Borland C++ Sagine E.Ferrus <sagine@islanderonline.com>
2003-07-21 13:52 ` Jeroen T. Vermeulen <jtv@xs4all.nl>

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