From owner-freebsd-questions Sun May 2 22:10: 7 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 6D30815C61 for ; Sun, 2 May 1999 22:09:56 -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 QAA01556 for ; Sun, 2 May 1999 16:13:54 -0500 (CDT) Message-ID: <372CCFC8.98F2409@eoe-magical.org> Date: Sun, 02 May 1999 23:20:57 +0100 From: Donald X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: Re: gcc compiler References: <199905030404.AAA20284@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 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. "Crist J. Clark" wrote: > Donald wrote, > > gcc filename.c -o filename > > > > compiles to a exe file, but I forgot how to link the > > math library, can ome one help. > > RTFM. > > % gcc -lm filename.c -o filname > > -- > Crist J. Clark cjclark@home.com > > 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