From owner-freebsd-hackers Tue Jul 20 16: 0:54 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from xylan.com (postal.xylan.com [208.8.0.248]) by hub.freebsd.org (Postfix) with ESMTP id 433BF15140 for ; Tue, 20 Jul 1999 16:00:51 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from mailhub.xylan.com by xylan.com (8.8.7/SMI-SVR4 (xylan-mgw 2.2 [OUT])) id PAA27002; Tue, 20 Jul 1999 15:57:34 -0700 (PDT) Received: from omni.xylan.com by mailhub.xylan.com (SMI-8.6/SMI-SVR4 (mailhub 2.1 [HUB])) id PAA10281; Tue, 20 Jul 1999 15:57:09 -0700 Received: from softweyr.com (dyn2.utah.xylan.com) by omni.xylan.com (4.1/SMI-4.1 (xylan engr [SPOOL])) id AA09947; Tue, 20 Jul 99 15:57:32 PDT Message-Id: <3794FEDB.B8F56C0D@softweyr.com> Date: Tue, 20 Jul 1999 16:57:31 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en Mime-Version: 1.0 To: "David E. Cross" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: linking question... References: <199907202120.RAA36480@cs.rpi.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "David E. Cross" wrote: > > 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? -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://softweyr.com/ wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message