www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/11/08:06:36

Date: Sun, 11 Feb 1996 14:56:29 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Orlando Andico <oandico AT eee DOT upd DOT edu DOT ph>
Cc: DJGPP Mailing List <djgpp AT delorie DOT com>
Subject: Re: your mail about arc-cosine

On Sat, 10 Feb 1996, Orlando Andico wrote:

> I have a program which calculates arc-cosines. Under DJGPP and GCC 
> (Linux), the program runs properly and calculates the correct final 
> result. However, compiling the program under Turbo C++ (3.0) results in a 
> floating point domain error. Why is this so? Any ideas would be appreciated.

The two environments set up the x87 control word differently, so some 
errors might go undetected in one of them, but not in the other.  Also, 
the default math functions in DJGPP don't check for domain errors (and 
thus might bomb your program); use the libm.a (add -lm to the link 
command line) to get better functions.

- Raw text -


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