Thread: /usr/libexec/elf/ld: cannot find -lpq

/usr/libexec/elf/ld: cannot find -lpq

From
"Eduardo Kotujansky"
Date:
I don´t know if it is about that list, but...there is my problem trying to
compile  a C++ app on a FreeBSD machine:

complex# make
make  all-recursive
Making all in everestserver
Making all in docs
Making all in en
c++  -g -O2  -o everestserver  main.o -lpq
/usr/libexec/elf/ld: cannot find -lpq
*** Error code 1

Stop in /root/rewq/everestserver.
*** Error code 1

Stop in /root/rewq/everestserver.
*** Error code 1

Stop in /root/rewq.
*** Error code 1

Stop in /root/rewq
------------------------
 Thanks for any help!  Eduardo




Re: /usr/libexec/elf/ld: cannot find -lpq

From
Peter Eisentraut
Date:
Eduardo Kotujansky writes:

> complex# make
> make  all-recursive
> Making all in everestserver
> Making all in docs
> Making all in en
> c++  -g -O2  -o everestserver  main.o -lpq
> /usr/libexec/elf/ld: cannot find -lpq
> *** Error code 1

You are missing an -L option that points the linker to the directory where
libpq is installed.

For details, read the documentation:

http://www.us.postgresql.org/users-lounge/docs/7.2/postgres/libpq-build.html

-- 
Peter Eisentraut   peter_e@gmx.net