Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

Next:From: Ecmel ErcanDate: 2001-09-16 17:24:58
Subject: pg_select Equivalent in libpq
Previous:From: Ashish GuptaDate: 2001-09-14 03:14:45
Subject:

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group