From: | "Tim Barnard" <tbarnard(at)povn(dot)com> |
---|---|
To: | "Joyce Brombaugh" <joyceb(at)cs(dot)washington(dot)edu> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: using libpq++.h |
Date: | 2002-02-21 20:55:27 |
Message-ID: | 020501c1bb1a$175e89e0$a519af3f@hartcomm.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-interfaces |
Take a look at /etc/ld.so.conf and see if the path to pgsql/lib is defined.
If not, add it to the end of the file and run ldconfig. That should fix it.
In my case, I had to add /usr/local/pgsql/lib.
Tim
----- Original Message -----
From: "Joyce Brombaugh" <joyceb(at)cs(dot)washington(dot)edu>
To: <pgsql-interfaces(at)postgresql(dot)org>
Sent: Saturday, February 16, 2002 7:52 PM
Subject: using libpq++.h
> 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.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
From | Date | Subject | |
---|---|---|---|
Next Message | Jean-Michel POURE | 2002-02-21 21:01:01 | Re: [HACKERS] fmgr_info: function 20071: cache lookup failed |
Previous Message | Stephan Szabo | 2002-02-21 20:54:50 | Re: [HACKERS] fmgr_info: function 20071: cache lookup failed |
From | Date | Subject | |
---|---|---|---|
Next Message | Tim Barnard | 2002-02-21 21:05:29 | Re: What about libpq-fe.h ? |
Previous Message | corey | 2002-02-21 20:13:46 | Re: libpq++ problem |