home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.hut.fi!mhtammin
- From: mhtammin@snakemail.hut.fi (Marko H. Tamminen)
- Newsgroups: comp.sys.amiga.programmer
- Subject: SAS/C+Floating point problem
- Date: 1 Jan 1996 19:01:13 GMT
- Organization: Helsinki University of Technology
- Distribution: inet
- Message-ID: <4c9b1p$46p@nntp.hut.fi>
- NNTP-Posting-Host: lk-hp-32.hut.fi
- X-Newsreader: TIN [version 1.2 PL2]
-
- I'm having major problems with SAS/C (v6) and it's floating points.
-
- 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...
-
- --
- Marko H. Tamminen, a.k.a. Grand Zumba
- ---
- -> Author of AmyPlanets & ZumbaTyper <-
- <> mhtammin@snakemail.hut.fi <>
-