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?)
INFINITY woes
-
- Posts: 46
- Joined: Tue Aug 21, 2007 10:30 am
- Contact:
Re: INFINITY woes
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
http://www.gamedev.net/community/forums ... _id=363356
-
- Posts: 5
- Joined: Thu Aug 23, 2007 12:25 pm
- Contact:
Re: INFINITY woes
I just did #define INFINITY (float)HUGE_VAL
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: INFINITY woes
That worked? I had tried using 1e1000, but I was told it complained about overflow.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Who is online
Users browsing this forum: No registered users and 2 guests