This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is there a way to detect Infinity?


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]