Date: Sun, 4 Oct 1998 13:05:58 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Rylan , 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.