Article View: comp.sys.amiga.tech
Article #13799Lattice C -- %f format
From: David Ewing
Date: Tue, 20 Feb 1990 18:01
Date: Tue, 20 Feb 1990 18:01
28 lines
1255 bytes
1255 bytes
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).
The problem is definetly with the %f format, it works fine if the
float is replaced by an int and %d is used.
I am an experienced C programmer but completely new to programming
on the Amiga. I suspect that the linker is not pulling in some
floating point library.
Please email any help to ewing@se-sd.sandiego.ncr.com. My apologies
if this is completely bone-headed or has been discussed ad infinitum
(I couldn't find any reference in my perusal of newuser).
Dave Ewing
ewing@se-sd.sandiego.ncr.com
Technical Details
Message-ID:
<2427@se-sd.NCR.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!emory!hubcap!ncrcae!ncr-sd!se-sd!ewingShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!emory!hubcap!ncrcae!ncr-sd!se-sd!ewing From: ewing@se-sd.NCR.COM (David Ewing) Newsgroups: comp.sys.amiga.tech Subject: Lattice C -- %f format Summary: get undefined symbol Message-ID: <2427@se-sd.NCR.COM> Date: 20 Feb 90 18:01:17 GMT Reply-To: ewing@se-sd.SanDiego.NCR.COM (David Ewing) Distribution: na Organization: NCR Corporation, SE-San Diego Lines: 28