libpq++ problem

Started by Nonameabout 24 years ago4 messagesgeneral
Jump to latest
#1Noname
corey@tsunamicreek.com

Hi, I am trying to get libpq++ working. I built postgresql
with the --with-CXX option. I'm trying to get a test program
running and I get this:

bash-2.05$ g++ -c -I /usr/local/pgsql/include/ test.cpp -L/usr/local/pgsql/lib/
bash-2.05$ g++ -o test -I /usr/local/pgsql/include/ test.o -L/usr/local/pgsql/lib -lpq++
bash-2.05$ ./test
/usr/libexec/ld-elf.so.1: Shared object "libpq++.so.4" not found

any ideas on how I might fix this problem or am I compiling incorrectly?

Thanks

Corey Mosher

#2Liam DeMasi
ldemasi@acsinc-nj.com
In reply to: Noname (#1)
Re: libpq++ problem

<corey@tsunamicreek.com> wrote in message
news:20020220205318.P859-100000@evilpig.idleplay.net...

Hi, I am trying to get libpq++ working. I built postgresql
with the --with-CXX option. I'm trying to get a test program
running and I get this:

bash-2.05$ g++ -c -I /usr/local/pgsql/include/

test.cpp -L/usr/local/pgsql/lib/

bash-2.05$ g++ -o test -I /usr/local/pgsql/include/

test.o -L/usr/local/pgsql/lib -lpq++

bash-2.05$ ./test
/usr/libexec/ld-elf.so.1: Shared object "libpq++.so.4" not found

any ideas on how I might fix this problem or am I compiling incorrectly?

Thanks

Corey Mosher

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

what you might want to try is not having a space before -lpq++

are you using a makefile? or just doing a single compiling?

Liam

#3Noname
corey@tsunamicreek.com
In reply to: Liam DeMasi (#2)
Re: libpq++ problem

I'm just doing a single compile...I think my problem can
be fixed by running an ldconfig but I have no idea what
the command would be as I've never used that command too
much.

Corey

On Thu, 21 Feb 2002, Liam DeMasi wrote:

Show quoted text

<corey@tsunamicreek.com> wrote in message
news:20020220205318.P859-100000@evilpig.idleplay.net...

Hi, I am trying to get libpq++ working. I built postgresql
with the --with-CXX option. I'm trying to get a test program
running and I get this:

bash-2.05$ g++ -c -I /usr/local/pgsql/include/

test.cpp -L/usr/local/pgsql/lib/

bash-2.05$ g++ -o test -I /usr/local/pgsql/include/

test.o -L/usr/local/pgsql/lib -lpq++

bash-2.05$ ./test
/usr/libexec/ld-elf.so.1: Shared object "libpq++.so.4" not found

any ideas on how I might fix this problem or am I compiling incorrectly?

Thanks

Corey Mosher

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

what you might want to try is not having a space before -lpq++

are you using a makefile? or just doing a single compiling?

Liam

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

#4Tim Barnard
tbarnard@povn.com
In reply to: Noname (#3)
Re: libpq++ problem

Add the line: /usr/local/pgsql/lib
to the bottom of /etc/ld.so.conf. Then simply run ldconfig at the command
line.

Tim

----- Original Message -----
From: <corey@tsunamicreek.com>
To: <pgsql-interfaces@postgresql.org>
Sent: Thursday, February 21, 2002 12:13 PM
Subject: Re: libpq++ problem

I'm just doing a single compile...I think my problem can
be fixed by running an ldconfig but I have no idea what
the command would be as I've never used that command too
much.

Corey

On Thu, 21 Feb 2002, Liam DeMasi wrote:

<corey@tsunamicreek.com> wrote in message
news:20020220205318.P859-100000@evilpig.idleplay.net...

Hi, I am trying to get libpq++ working. I built postgresql
with the --with-CXX option. I'm trying to get a test program
running and I get this:

bash-2.05$ g++ -c -I /usr/local/pgsql/include/

test.cpp -L/usr/local/pgsql/lib/

bash-2.05$ g++ -o test -I /usr/local/pgsql/include/

test.o -L/usr/local/pgsql/lib -lpq++

bash-2.05$ ./test
/usr/libexec/ld-elf.so.1: Shared object "libpq++.so.4" not found

any ideas on how I might fix this problem or am I compiling

incorrectly?

Thanks

Corey Mosher

---------------------------(end of

broadcast)---------------------------

TIP 1: subscribe and unsubscribe commands go to

majordomo@postgresql.org

Show quoted text

what you might want to try is not having a space before -lpq++

are you using a makefile? or just doing a single compiling?

Liam

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html