Mail Archives: djgpp/1998/10/04/07:47:25
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 -