Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site think.ARPA Path: utzoo!watmath!clyde!cbosgd!ihnp4!think!ejb From: ejb@think.ARPA (Erik Bailey) Newsgroups: net.sources.bugs Subject: Re: Problem with Lattice C 2.15 Message-ID: <4457@think.ARPA> Date: Sat, 1-Mar-86 00:42:52 EST Article-I.D.: think.4457 Posted: Sat Mar 1 00:42:52 1986 Date-Received: Sat, 1-Mar-86 23:11:46 EST References: <147@simon_pc.UUCP> Reply-To: ejb@think.UUCP (Erik Bailey) Distribution: na Organization: Thinking Machines, Cambridge, MA Lines: 28 In article <147@simon_pc.UUCP> simon@simon_pc.UUCP (Simon Shapiro) writes: >I need help with the following 'program': > > . . . > 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? Well, lets call it a pseudo-bug. I had the SAME problem when I bought Lattice 2.14 (they did NOT send me the 2.14 update stuff! :-( ). The deal is that you have to link NOT ONLY LC?.LIB, but *also* LCM?.LIB [the M means Math -- it holds reals (your problem) as well as tan stuff, etc.]. Hope this helps... --Erik -- Erik Bailey -- 7 Oak Knoll (USENET courtesy of ihnp4!godot!ejb Arlington, MA 02174 Thinking Machines Corp. ejb@think.com.arpa (617) 643-0732 Cambridge, MA) It takes thought to make a program that thinks. But it takes work to make a program that works.