Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!manuel!ccadfa!prolix!dac From: dac@prolix.ccadfa.oz.au (Andrew Clayton) Newsgroups: comp.sys.amiga.programmer Subject: Re: Amiga 3000, 2.0 and Lattice C Message-ID: <189efaac.ARN2896@prolix.ccadfa.oz.au> Date: 2 Feb 91 12:14:04 GMT References: <91031.171403FORDE@vm.poly.edu> <1991Feb1.050338.22222@cs.dal.ca> Reply-To: ccadfa.cc.adfa.oz.au!prolix!dac@munnari.OZ.AU Followup-To: comp.sys.amiga.programmer Organization: More like Mis~, really. Lines: 23 In article <1991Feb1.050338.22222@cs.dal.ca>, Colin DeWolfe writes: > In article <91031.171403FORDE@vm.poly.edu> FORDE@vm.poly.edu writes: > > > > int var1=1; > > float var2=2.3; > > > > printf("%d %f:n",var1,var2); > > > > results in: > > > > 1 %f > > > >Can anyone tell me why this is happening. I'm using Lattice C 5.10. > > You're linking with the wring library. When you use floats and such, > use lcm.lib (or lcm881.lib depending on your math mode) instead of lc.lib It's better if you link with the write library, rather than the wring one. Wread Write Wring? ;^) (Yells of OFF TOPIC.) Followup to not.on.this.network