Date: Sat, 31 Dec 1994 12:35:26 -0800 From: jmacd@uclink.berkeley.edu (Joshua Peck Macdonald) To: freebsd-questions@freefall.cdrom.com Subject: ld question Message-ID: <199412312035.MAA08986@uclink.berkeley.edu>
next in thread | raw e-mail | index | archive | help
I'm having this problem which I can't make sense of. When I try to link an object file with one of the shared libraries in /usr/X11R6/lib or in /usr/local/lib I get an error from ld saying, for example, -lX11: no match I'm running the command ld -A file.o -llibrary where library is something in those two directories. It seems to link properly with the libraries in /usr/lib, but I don't understand this because ldconfig -r reports all the libraries. can anyone help? these libraries all link properly when I tell gcc to link them for me like gcc -o file file.o -lX11 but I'm trying to build a compiler which will call ld without gcc and I'm having trouble. -josh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199412312035.MAA08986>