delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/04/07:47:25

Date: Sun, 4 Oct 1998 13:05:58 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Rylan <rylan AT inbtekom DOT co DOT za>, grigi AT acenet DOT co DOT za
cc: djgpp AT delorie DOT com
Subject: Re: Math errors
In-Reply-To: <6v30a8$1uc$1@news2.saix.net>
Message-ID: <Pine.SUN.3.91.981004130528.1863i-100000@is>
MIME-Version: 1.0

On Fri, 2 Oct 1998, Rylan wrote:

> My nephew uses both DJGPP and Watcom, and recently complained that the DJGPP
> C math COS/SIN functions start returning invalid values (larger than -1 and
> 1) for large input values - he says that Watcom and real mode Pascal returns
> correct values for inputs to their SIN/COS functions for which DJGPP returns
> invalid values.

Did your nephew try appending -lm (that's a lower-case el after the
dash) to the GCC command line?  This will lonk in a version of math
functions that are more robust (and slightly slower) than the default
ones.

- Raw text -


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