From owner-freebsd-questions Mon May 3 7:19:37 1999 Delivered-To: freebsd-questions@freebsd.org Received: from tele-post-20.mail.demon.net (tele-post-20.mail.demon.net [194.217.242.20]) by hub.freebsd.org (Postfix) with ESMTP id 729DB14EAF for ; Mon, 3 May 1999 07:19:11 -0700 (PDT) (envelope-from marko@uk.radan.com) Received: from [158.152.75.22] (helo=uk.radan.com) by tele-post-20.mail.demon.net with smtp (Exim 2.12 #2) id 10eJYq-0006LJ-0K; Mon, 3 May 1999 14:19:09 +0000 Organisation: Radan Computational Ltd., Bath, UK. Phone: +44-1225-320320 Fax: +44-1225-320311 Received: from marder-1. (rasnt-1 [193.114.228.211]) by uk.radan.com (8.6.10/8.6.10) with ESMTP id PAA02290; Mon, 3 May 1999 15:18:32 +0100 Received: (from marko@localhost) by marder-1. (8.9.2/8.8.8) id PAA00295; Mon, 3 May 1999 15:18:32 +0100 (BST) (envelope-from marko) Date: Mon, 3 May 1999 15:18:32 +0100 From: Mark Ovens To: Ben Smithurst Cc: Donald , freebsd-questions@freebsd.org Subject: Re: gcc compiler Message-ID: <19990503151832.A255@marder-1> References: <199905030404.AAA20284@cc942873-a.ewndsr1.nj.home.com> <372CCFC8.98F2409@eoe-magical.org> <19990503124335.B78218@scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <19990503124335.B78218@scientia.demon.co.uk>; from Ben Smithurst on Mon, May 03, 1999 at 12:43:35PM +0100 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? > -- > Ben Smithurst > ben@scientia.demon.co.uk > > > 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