From owner-freebsd-questions Mon May 3 5:43:46 1999 Delivered-To: freebsd-questions@freebsd.org Received: from nebula.nift.net (unknown [207.212.29.153]) by hub.freebsd.org (Postfix) with ESMTP id 0A98014A2E for ; Mon, 3 May 1999 05:43:41 -0700 (PDT) (envelope-from druid@eoe-magical.org) Received: from eoe-magical.org ([207.212.29.157]) by nebula.nift.net (8.8.5/8.8.5) with ESMTP id XAA02116; Sun, 2 May 1999 23:47:19 -0500 (CDT) Message-ID: <372D3A0C.EC9EA34A@eoe-magical.org> Date: Mon, 03 May 1999 06:54:20 +0100 From: Donald X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: German Tischler Cc: freebsd-questions@FreeBSD.ORG Subject: Re: gcc compiler References: <199905030404.AAA20284@cc942873-a.ewndsr1.nj.home.com> <372CCFC8.98F2409@eoe-magical.org> <19990503090000.A555@gaspode.franken.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the code there is not a call to ltoa so I am wondering where is coming from. German Tischler wrote: > On Sun, May 02, 1999 at 11:20:57PM +0100, Donald wrote: > > In compiling a program using > > gcc filename.c -o filename -lm > > I get an error > > Undefined sysbol _ltoa referenced from text segment > > > > from this I figure that as I am not making a call to the function > > LongToAscii (ltoa) that some part of a call is, what lib needs to > > be loaded for this to work. > > I assumed the -lm was what was needed. > > > > I think there ain't no such thing as an ltoa function in ANSI C. > Are your sure you don't want to use sprintf ? (or better snprintf ?) > > -- > German Tischler tanis@gaspode.franken.de > Apple eaten (core dumped) tanis@cip.informatik.uni-wuerzburg.de > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message