Page 1 of 1

INFINITY woes

Posted: Tue Sep 25, 2007 9:27 am
by vulh102
Hi

i could compile chipmunk when i was using visual studio 2003, using some hacks found on this forum

now i changed to visual studio 2005 and cant for my life get a valid INFINITY define

anyone got infinity to work under visual studio 2005?
(ive also had problems with the compiler not finding global variables in headers, whats up with that?)

Re: INFINITY woes

Posted: Tue Sep 25, 2007 12:21 pm
by Michael Buckley
MSVC 2005 is famous for not allowing the standard INFINITY hack to compile. I found some workarounds here:

http://www.gamedev.net/community/forums ... _id=363356

Re: INFINITY woes

Posted: Tue Sep 25, 2007 2:16 pm
by pTymN
I just did #define INFINITY (float)HUGE_VAL

Re: INFINITY woes

Posted: Tue Sep 25, 2007 11:20 pm
by slembcke
That worked? I had tried using 1e1000, but I was told it complained about overflow.