home *** CD-ROM | disk | FTP | other *** search
- Path: redstone.interpath.net!usenet
- From: jamie@jamie.interpath.net (Jim Cooper)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: SAS/C+Floating point problem
- Date: 2 Jan 1996 16:46:37 GMT
- Organization: Interpath -- Providing Internet access to North Carolina
- Distribution: inet
- Message-ID: <4cbnhd$ac6@redstone.interpath.net>
- References: <4c9b1p$46p@nntp.hut.fi>
- NNTP-Posting-Host: raleigh2-36.interpath.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-NewsReader: Interworks_GRn 3.0b23 December 28, 1995
-
- In article <4c9b1p$46p@nntp.hut.fi> mhtammin@snakemail.hut.fi (Marko H. Tamminen) writes:
- > I'm having major problems with SAS/C (v6) and it's floating points.
-
- v6.?? You should be at 6.56. If not, please download the 6.55 & 6.56
- patches from AmiNET biz/patch dir, and apply ASAP.
-
- > They work OK when I compile my program using the -lm option, but
- > when I've got a smakefile and use it, they don't seem to work. If I have
- > a printf("%f",1.0); it just prints %f to the shell!! And also all
- > calculations seem to be wrong, but can't check it, as I can't print out
- > the results. sprintf is also malfunctioning!
- >
- > In my smakefile I have MATH F in the compiler-options and lib:scmffp.lib
- > is linked too.
- >
- > What am I doing wrong, and how should I fix it? It's really starting to
- > bugger me, and my project is in a stall because of this...
-
-
- *Where* is scmffp.lib "linked"? When linking with a math library, it *must*
- be specified before any others. Look in the library reference manual for
- details on linking order.
-
- --
- Jim Cooper | World: jamie@interpath.com | "I-Net 225 is my life... or at
- | BIX: jcooper | least it seems like it!" :-)
-
- Definition of Perfection: Dysfunctionally Challenged.
-