Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!cornell!rochester!ur-tut!sunybcs!boulder!hao!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpda!hpcupt1!hpcuhb!hpsmtc1!swh From: swh@hpsmtc1.HP.COM (Steve Harrold) Newsgroups: comp.sys.ibm.pc Subject: Re: Help! about Lattice_C. Message-ID: <11470026@hpsmtc1.HP.COM> Date: 22 Feb 88 16:33:08 GMT References: <249@wright.EDU> Organization: Hewlett Packard, Cupertino Lines: 26 Re: Missing floating point If you have the source to this program file, your problem might be that you've used some floating point specification in a "printf" statement, but you've made NO reference to floating point anywhere else in the code. Since the COMPILER saw no need for the floating point library, it did not generate external symbols to cause link-time resolution (remember, the "%" specification strings in a "printf" function are just treated as literals, nothing special). The error arises at LINK time because the "printf" function in the standard C library HAS a need for the floating point library, due to the possibility of having to service things like a "%g" specification. The answer might be as simple as naming the floating point library on the "link" command line. Alternately, you could try inserting one dummy statement in the source that explicitly uses floating point arithmetic. Please note that this situation is NOT UNIQUE to Lattice. All C compilers share the "problem". --------------------- Steve Harrold ...hplabs!hpsmtc1!swh HPG200/13 (408) 447-5580 ---------------------