From owner-freebsd-questions Sat Dec 31 12:35:33 1994 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id MAA22424 for questions-outgoing; Sat, 31 Dec 1994 12:35:33 -0800 Received: from uclink3.berkeley.edu (uclink3.Berkeley.EDU [128.32.136.74]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id MAA22418 for ; Sat, 31 Dec 1994 12:35:32 -0800 Received: from uclink.berkeley.edu by uclink3.berkeley.edu (8.6.8/1.33(web)-OV2) id MAA16014; Sat, 31 Dec 1994 12:35:27 -0800 Received: by uclink.berkeley.edu (8.6.9/1.33(web)-OV4) id MAA08986; Sat, 31 Dec 1994 12:35:26 -0800 Date: Sat, 31 Dec 1994 12:35:26 -0800 From: jmacd@uclink.berkeley.edu (Joshua Peck Macdonald) Message-Id: <199412312035.MAA08986@uclink.berkeley.edu> To: freebsd-questions@freefall.cdrom.com Subject: ld question Sender: questions-owner@freebsd.org Precedence: bulk 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