using libpq++.h

From: Joyce Brombaugh <joyceb(at)cs(dot)washington(dot)edu>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: using libpq++.h
Date: 2002-02-17 03:52:00
Message-ID: 20020216194517.D5293-100000@sumatra.cs.washington.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2002-02-17 04:52:48 Looking for a function
Previous Message paul 2002-02-17 01:33:30 VERY basic

Browse pgsql-interfaces by date

  From Date Subject
Next Message Joyce Brombaugh 2002-02-17 07:41:20 using libpq++.h (fwd)
Previous Message paul 2002-02-17 01:36:54 RH Linux 7.2