delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/16/10:00:32

From: "0/0" <nsousbpoanmer AT naooslp DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Floating point..... I think....
Date: 16 Jun 1999 05:37:44 GMT
Organization: Value Net Internetwork Services Inc.
Lines: 30
Message-ID: <01beb7ba$28c43560$fc4484ce@sub>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990615094647 DOT 2646F-100000 AT is>
NNTP-Posting-Host: fgna-252.value.net
X-Newsreader: Microsoft Internet News 4.70.1162
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com


Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote in article
<Pine DOT SUN DOT 3 DOT 91 DOT 990615094647 DOT 2646F-100000 AT is>...
> 
> On 14 Jun 1999, 0/0 wrote:
> 
> > I'm playing around with FFTs, and I notice my DFT and FFT functions
become
> > less acurate when I compile for DJGPP then they do when I compile with
> > watcom and Visual C++...
> 
> Did you link with "-lm" in the end of the command line?
> Did you #include <math.h>?
> 

Yes I did "#include <math.h> and No I didn't use "-lm" but when I did it
now, it had no effect.

I guess there could be something else going on, I'm going to try diffrent
optimization functions just to be on the safe side, thank you, though.....
BTW here are the comand lines I have tried....

gcc ft.cpp image.cpp main.cpp waveform.cpp -o ft.exe
gcc -O3 ft.cpp image.cpp main.cpp waveform.cpp -o ft.exe
gcc -O3 ft.cpp image.cpp main.cpp waveform.cpp -o ft.exe -lm

I'm going to see if it may be relating to something, with processor
specific settings....

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019