This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Is there a way to detect Infinity?
- From: Ben Davis <bnd25 at cam dot ac dot uk>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 30 Jan 2003 01:56:31 +0000
- Subject: Re: Is there a way to detect Infinity?
- References: <5.2.0.9.2.20030129162317.03a7cfa8@mailsea>
> Earlier, on gcc2.95, I was using the finite() function call to detect
> infinity. But that does not work on gcc3.2.
> Has the function been relocated? Or what is the new call?
Make sure you're #including <math.h>, and try linking with -lm if you aren't
already doing so. Otherwise I dunno.
Ben