From owner-freebsd-questions Tue May 4 0: 0:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from finch-post-11.mail.demon.net (finch-post-11.mail.demon.net [194.217.242.39]) by hub.freebsd.org (Postfix) with ESMTP id A3B0814D13 for ; Tue, 4 May 1999 00:00:34 -0700 (PDT) (envelope-from marko@uk.radan.com) Received: from [158.152.75.22] (helo=uk.radan.com) by finch-post-11.mail.demon.net with smtp (Exim 2.12 #1) id 10eZBw-000KVp-0B; Tue, 4 May 1999 07:00:32 +0000 Organisation: Radan Computational Ltd., Bath, UK. Phone: +44-1225-320320 Fax: +44-1225-320311 Received: from support-3.uk.radan.com (support-3 [193.114.228.220]) by uk.radan.com (8.6.10/8.6.10) with ESMTP id HAA01889; Tue, 4 May 1999 07:59:57 +0100 Received: from uk.radan.com by support-3.uk.radan.com (SMI-8.6/SMI-SVR4) id HAA01327; Tue, 4 May 1999 07:59:56 +0100 Message-ID: <372E9AA9.40E638EE@uk.radan.com> Date: Tue, 04 May 1999 07:58:50 +0100 From: Mark Ovens Organization: Radan Computational Ltd X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 4.1.3_U1 sun4m) X-Accept-Language: en-GB MIME-Version: 1.0 To: cjclark@home.com Cc: Donald , ben@scientia.demon.co.uk, freebsd-questions@freebsd.org Subject: Re: gcc compiler References: <199905040356.XAA02331@cc942873-a.ewndsr1.nj.home.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Crist J. Clark" wrote: > > 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). > ``grep -a ltoa *'' should deal with the binaries. > 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 -- FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://www.users.globalnet.co.uk/~markov _______________________________________________________________ Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK CAD/CAM solutions for Sheetmetal Working Industry mailto:marko@uk.radan.com http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message