Thread: using libpq++.h

using libpq++.h

From
Joyce Brombaugh
Date:
I am new in this and really appreciate some help.

I am able to compile my interface, but get an error when I tried to 
execute it:

error while loading shared libraries: libpq++.so.4: cannot open shared 
object file: No such file or directory

I can see I do have that file in /pgsql/lib


I compiled it with:       g++ -g main.o database.o -L/.../pgsql/lib -lpq++ -lpq

main.o: main.cpp database.h       g++ -I/.../pgsql/include -g -c main.cpp

data_source.o: database.cpp database.h       g++ -I/.../pgsql/include -g -c data_source.cpp


Thanks a lot for any help.



Re: using libpq++.h

From
Oliver Elphick
Date:
On Sun, 2002-02-17 at 03:52, Joyce Brombaugh wrote:
> I am new in this and really appreciate some help.
> 
> I am able to compile my interface, but get an error when I tried to 
> execute it:
> 
> error while loading shared libraries: libpq++.so.4: cannot open shared 
> object file: No such file or directory

You probably need to use ldconfig to tell the loader where to find this
library.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
    "My sheep hear my voice, and I know them, and they      follow me; And I give unto them eternal life; and they
shallnever perish, neither shall any man pluck them      out of my hand."          John 10:27,28