Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!cs.dal.ca!ug.cs.dal.ca!dewolfe From: dewolfe@ug.cs.dal.ca (Colin DeWolfe) Newsgroups: comp.sys.amiga.programmer Subject: Re: Amiga 3000, 2.0 and Lattice C Message-ID: <1991Feb1.050338.22222@cs.dal.ca> Date: 1 Feb 91 05:03:38 GMT References: <91031.171403FORDE@vm.poly.edu> Sender: news@cs.dal.ca (USENET News) Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada Lines: 21 Nntp-Posting-Host: ug.cs.dal.ca 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 or if you're doing "lc -L file", change it to "lc -Lm (or -Lm881) file" -- Colin DeWolfe dewolfe@ug.cs.dal.ca