From owner-freebsd-questions Mon May 3 20:57:29 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 404D3157A8 for ; Mon, 3 May 1999 20:57:24 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id XAA02331; Mon, 3 May 1999 23:56:52 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199905040356.XAA02331@cc942873-a.ewndsr1.nj.home.com> Subject: Re: gcc compiler In-Reply-To: <372DCCFB.E967B297@eoe-magical.org> from Donald at "May 3, 99 05:21:15 pm" To: druid@eoe-magical.org (Donald) Date: Mon, 3 May 1999 23:56:52 -0400 (EDT) Cc: marko@uk.radan.com, ben@scientia.demon.co.uk, freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Donald wrote, > no its a unix, and their is not actualy a call to an ltoa. There must be a call somewhere. Make sure you use the '-Wall' option on the gcc command line too. Go to every directory that has some of the code you are using and try, % grep ltoa * To see if you can find it (that could spam you out if there are binaries around). It's got to be somewhere. > Mark Ovens wrote: > > > On Mon, May 03, 1999 at 12:43:35PM +0100, Ben Smithurst wrote: > > > 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. > > > > > > RTFM for ltoa. There isn't one, so FreeBSD probably > > > doesn't have that function. Just use snprintf(3) to convert a number to > > > a string, unless anyone knows a better way. > > > > > > > IIRC Borland Turbo C has ltoa(), and itoa etc. (sort of the inverse > > of atol). Is the source code from DOS? -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message