Path: 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 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). 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