home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 39 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: nntp.hut.fi!mhtammin
  2. From: mhtammin@snakemail.hut.fi (Marko H. Tamminen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: SAS/C+Floating point problem
  5. Date: 1 Jan 1996 19:01:13 GMT
  6. Organization: Helsinki University of Technology
  7. Distribution: inet
  8. Message-ID: <4c9b1p$46p@nntp.hut.fi>
  9. NNTP-Posting-Host: lk-hp-32.hut.fi
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. I'm having major problems with SAS/C (v6) and it's floating points.
  13.  
  14. They work OK when I compile my program using the -lm option, but
  15. when I've got a smakefile and use it, they don't seem to work. If I have 
  16. a printf("%f",1.0); it just prints %f to the shell!! And also all 
  17. calculations seem to be wrong, but can't check it, as I can't print out 
  18. the results. sprintf is also malfunctioning!
  19.  
  20. In my smakefile I have MATH F in the compiler-options and lib:scmffp.lib 
  21. is linked too.
  22.  
  23. What am I doing wrong, and how should I fix it? It's really starting to 
  24. bugger me, and my project is in a stall because of this...
  25.  
  26. --
  27.  Marko H. Tamminen, a.k.a. Grand Zumba
  28. ---
  29.                 -> Author of AmyPlanets & ZumbaTyper <-
  30.                     <> mhtammin@snakemail.hut.fi <>
  31.