Path: utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!ubc-cs!news-server.csri.toronto.edu!clyde.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.tech Subject: Re: SAS 5.10 printf Message-ID: <1990Oct20.201834.16000@cs.dal.ca> Date: 20 Oct 90 20:18:34 GMT References: <3347@orbit.cts.com> Sender: news@cs.dal.ca (USENET News) Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada Lines: 33 Nntp-Posting-Host: ug.cs.dal.ca In article <3347@orbit.cts.com> igor@pnet51.orb.mn.org (Peter Dufault) writes: > > I have a problem with using printf() in SAS 5.10. >For example, the following code: > >#include > >double test; > >main() >{ > test=1.6; > printf(" %g \n",test); >} > >will simply print "%g" on the screen. Printing integers using %d works >perfectly fine, however. Anyone else had this problem? Anyone willing to test >it? I don't have 5.10 (yet) but I think I know what your problem is. Try linking in the appropriate math library (it should be the first library scanned during linking) be it lcm881, lcmieee or simply lcm (depending on your -f argument in the lc command line). > > >UUCP: {amdahl!bungia, uunet!rosevax, crash}!orbit!pnet51!igor >ARPA: crash!orbit!pnet51!igor@nosc.mil >INET: igor@pnet51.orb.mn.org Colin DeWolfe dewolfe@ug.cs.dal.ca dewolfe@iris1.ucis.dalc.ca