From owner-freebsd-questions Mon May 3 3:43:36 1999 Delivered-To: freebsd-questions@freebsd.org Received: from maulwurf.franken.de (maulwurf.franken.de [193.141.110.9]) by hub.freebsd.org (Postfix) with ESMTP id 1D8D514E6B for ; Mon, 3 May 1999 03:43:31 -0700 (PDT) (envelope-from gaspode.franken.de!tanis@maulwurf.franken.de) Received: by maulwurf.franken.de via rmail with stdio id for freebsd-questions@freebsd.org; Mon, 3 May 1999 12:42:57 +0200 (MET DST) (Smail-3.2 1996-Jul-4 #1 built DST-May-30) Received: (from tanis@localhost) by gaspode.franken.de (8.9.3/8.9.3) id JAA00574; Mon, 3 May 1999 09:00:00 +0200 (CEST) (envelope-from tanis) Date: Mon, 3 May 1999 09:00:00 +0200 From: German Tischler To: Donald Cc: freebsd-questions@freebsd.org Subject: Re: gcc compiler Message-ID: <19990503090000.A555@gaspode.franken.de> References: <199905030404.AAA20284@cc942873-a.ewndsr1.nj.home.com> <372CCFC8.98F2409@eoe-magical.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <372CCFC8.98F2409@eoe-magical.org>; from Donald on Sun, May 02, 1999 at 11:20:57PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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