Path: utzoo!attcan!uunet!seismo!ukma!tut.cis.ohio-state.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!sunybcs!rutgers!cbmvax!mitchell From: mitchell@cbmvax.commodore.com (Fred Mitchell - Product Assurance) Newsgroups: comp.sys.amiga.tech Subject: Re: Lattice C -- %f format Message-ID: <9760@cbmvax.commodore.com> Date: 21 Feb 90 16:12:31 GMT References: <2427@se-sd.NCR.COM> Reply-To: mitchell@cbmvax.cbm.commodore.com (Fred Mitchell - Product Assurance) Distribution: na Organization: Commodore, West Chester, PA Lines: 29 In article <2427@se-sd.NCR.COM> ewing@se-sd.SanDiego.NCR.COM (David Ewing) writes: > >I get an "undefined symbol" message at link time when I compile >and link the following test program on Lattice C 5.04 -- > >#include > >main() >{ > float fl = 1.0; > printf("%f\n", fl); >} > >I simply compiled it and linked it by typing "lc -L dummy" ( >the program was dummy.c). > You have to specify a floating-point library when using floating-point. One option: lc -Lm dummy Will work. See your Lattice manual for a complete discussion. >Dave Ewing >ewing@se-sd.sandiego.ncr.com -Mitchell mitchell@cbmvax.UUCP