This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
ld can't find library
- To: gcc-help at gcc dot gnu dot org
- Subject: ld can't find library
- From: Manuel Cano <manuel at sanyres dot com>
- Date: Fri, 16 Mar 2001 11:17:54 +0100
- Reply-To: manuel at sanyres dot com
Hi,
I try to compile a simple "hello world" program with PDFlib, but ld
complains about not finding the lib file.
My LIBS var in Makefile:
LIBS = -L/usr/lib -llibpdf
The libpdf.a, libpdf.la, libpdf.so and some links to the true library
libpdf.so.0.0.0 are there and /usr/lib is in ld.so.conf.
the compile line says:
g++ main.o -o main -m486 -L/usr/lib -llibpdf
the error message says:
/usr/i486-suse-linux/bin/ld: cannot find -llibpdf
What am I missing?
--
Manuel Cano Muņoz
------------------------------
SANYRES, S.A.
Dpto. Sistemas
manuel@sanyres.com