Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site alice.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!alice!ark From: ark@alice.UucP (Andrew Koenig) Newsgroups: net.sources.bugs Subject: Re: Problem with Lattice C 2.15 Message-ID: <5069@alice.uUCp> Date: Sat, 1-Mar-86 13:49:14 EST Article-I.D.: alice.5069 Posted: Sat Mar 1 13:49:14 1986 Date-Received: Sun, 2-Mar-86 02:44:41 EST References: <147@simon_pc.UUCP> Organization: Bell Labs, Murray Hill Lines: 18 > I need help with the following 'program': > #include > > main() > { > double test; > test = 1234567.981; > printf("Test of double value %7.2f\n", test); > } > > It runs fine on SV but produces the line "...value 7.2f" when compiled > on a PC clone with Lattice C version 2.15. Am I doing something wrong > or is this a bug? I tried the same with sprintf() but the same results. > Any mailed help will be greatly appreciated. You need to link with the floating-point library (\lc\s\lcm, etc). Use the "linkms" script instead of the "links" script, etc...