Re:

From: Carlos Moreno <moreno(at)mochima(dot)com>
To: Ashish Gupta <ashish0906(at)hotmail(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re:
Date: 2001-09-14 05:03:25
Message-ID: 3BA18F9D.DA74DC69@mochima.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces


> Ashish Gupta wrote:
>
> hi everybody,
>
> I am using postgresql database comfortably through java/JDBC. I intend
> to use this database through C++ programs and i get this error when i
> compile the sample program for libpq++
>
> g++ -I/usr/local/pgsql/include
> -I/root/ashish/postgresql-7.1.3/src/interfaces/ -o testlibpq0
> testlibpq0.cc -L/usr/local/pgsql/lib -lpq++
> /usr/bin/ld: cannot find -lpq++
> collect2: ld returned 1 exit status
>
> can anybody guide me why this error is coming......

Sounds like the library is not on the directory you think it is;
on my system (an out-of-the-box RedHat), the library is located
on the default lib path (/usr/lib/libpq++.so.*); so, you might
try a:

find /usr -name "libpq++*"

To figure out where it is, then adjust the -L switch accordingly.

HTH,

Carlos
--

In response to

  • at 2001-09-14 03:14:45 from Ashish Gupta

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ecmel Ercan 2001-09-16 17:24:58 pg_select Equivalent in libpq
Previous Message Ashish Gupta 2001-09-14 03:14:45