Article View: comp.sys.amiga.tech
Article #13821Re: Lattice C -- %f format
From: Fred Mitchell - Product Assuranc...
Date: Wed, 21 Feb 1990 16:12
Date: Wed, 21 Feb 1990 16:12
29 lines
1194 bytes
1194 bytes
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 <stdio.h>
>
>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
Technical Details
Message-ID:
<9760@cbmvax.commodore.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!seismo!ukma!tut.cis.ohio-state.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!sunybcs!rutgers!cbmvax!mitchellReferences:
<2427@se-sd.NCR.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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