From owner-freebsd-hackers Tue Jul 20 22:58:41 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from cs.rpi.edu (mumble.cs.rpi.edu [128.213.8.16]) by hub.freebsd.org (Postfix) with ESMTP id 07C3A14E7B for ; Tue, 20 Jul 1999 22:58:39 -0700 (PDT) (envelope-from crossd@cs.rpi.edu) Received: from cs.rpi.edu (phoenix.cs.rpi.edu [128.113.96.153]) by cs.rpi.edu (8.9.3/8.9.3) with ESMTP id BAA43815; Wed, 21 Jul 1999 01:57:46 -0400 (EDT) Message-Id: <199907210557.BAA43815@cs.rpi.edu> To: Wes Peters Cc: "David E. Cross" , freebsd-hackers@FreeBSD.ORG, crossd@cs.rpi.edu Subject: Re: linking question... In-Reply-To: Message from Wes Peters of "Tue, 20 Jul 1999 16:57:31 MDT." <3794FEDB.B8F56C0D@softweyr.com> Date: Wed, 21 Jul 1999 01:57:40 -0400 From: "David E. Cross" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > I have a program (part of CDE)... we will call it 'foo', > > > > "foo" has library dependancies: libtt.so, libX11.so, libXt.so, libXext.so, and > > libwcs.so(this last one is mine). > > > > libtt.so depends on iswalpha() and iswspace() (which are defined in libwcs.so) > > > > If I link with all of those I get an error that iswspace and iswalpha are > > undefined, yet: nm /usr/local/lib/libwcs.so | grep isw returns: > > > 00001358 T iswalpha > > > 000013b0 T iswprint > > > 00001384 T iswspace > > > > And if I change the '-lwcs' line to '/usr/local/lib/libwcs.a' it links fine. > > Did you remember -L/usr/local/lib so the linker will know to search for > libraries there? Do you have a bogus libwcs.a in /usr/lib? The problem indeed was conflicting libraries... (in /usr/X11R6/lib).. however I did place on the line *immediately* before the -lwcs a -L/usr/local/lib, however it appeared to take the /usr/X11R6/lib (which was in a previous -L statement) version instead. Is this correct? -- David Cross | email: crossd@cs.rpi.edu Systems Administrator/Research Programmer | Web: http://www.cs.rpi.edu/~crossd Rensselaer Polytechnic Institute, | Ph: 518.276.2860 Department of Computer Science | Fax: 518.276.4033 I speak only for myself. | WinNT:Linux::Linux:FreeBSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message