[iphone]error: 'isfinite' was not declared in this scope

Hi!

This is strange.

My box2d works nice on my iphone game, but I created another project (for another game) and now I receive 8 errors like this:

[iphone]error: 'isfinite' was not declared in this scope.

Does anybody have any idea what is going on? In my other game, it works, why does it do not work now?

Thanks.
isfinite (I believe, correct me if I'm wrong) is a C standard library function. You might need to include some POSIX headers where this macro is defined.

-P
I don't know, but it works perfectly in another project. That's what I don't understand.
Like I said, the only thing I can think of is difference in header files where isfinite doesn't get declared.

According to ANSI, it's in math.h (you could also check cmath, std::isfin maybe?)

-P

Original thread: https://box2d.org/forum/viewtopic.php?t=3796