home *** CD-ROM | disk | FTP | other *** search
- Path: easy.in-chemnitz.de!mkmk!floh
- From: floh@mkmk.in-chemnitz.de (Andre Weissflog)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: SAS/C+Floating point problem
- Message-ID: <bc4Tx*Qz0@mkmk.in-chemnitz.de>
- Date: Tue, 02 Jan 1996 00:53:31 CET
- Reply-To: floh@mkmk.in-chemnitz.de
- References: <4c9b1p$46p@nntp.hut.fi>
- Distribution: world
- Organization: private uucp site
- X-Newsreader: Arn V 1.04
-
- In article <4c9b1p$46p@nntp.hut.fi>, Marko H. Tamminen writes:
-
- > 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...
- >
- I think the easiest way to fix this is to don't use any options
- in the smakefile at all and have an scoptions file in the project
- directory created by scopts. If you use "sc link" instead of "slink"
- in your makefile, the linker will be called with the correct
- options from the scoptions file.
-
- Bye,
- -Floh.
-
- ====//=== Andre Weissflog <floh@mkmk.in-chemnitz.de> =======
- ...// Sep'95: Return Of The Living Death...................
- \\// 90% of everything is crap (Sturgeon's Law)...........
- =\\===============================================Amiga!=
-
-