Mail Archives: djgpp/1998/04/23/13:09:47
On Thu, 23 Apr 1998, Kbwms wrote:
> This produced the following:
>
> pow(0,0) = NaN
Did you link this (and paranoia.c) with -lm switch? If not, then please
try -lm. I think you will get the desired results.
The math functions in libc.a are for those who don't know that Unix
compilers need to see -lm to link them in (you won't believe how many
questions were asked about this in the days of DJGPP v1.x when without -lm
you'd get unresolved externals). The versions in libc.a are good enough
for garden variety programs, but if you need serious FP computations, you
have to say -lm.
- Raw text -