INFINITY woes

Official forum for the Chipmunk2D Physics Library.
Post Reply
vulh102
Posts: 13
Joined: Tue Sep 25, 2007 9:24 am
Contact:

INFINITY woes

Post 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?)
Michael Buckley
Posts: 46
Joined: Tue Aug 21, 2007 10:30 am
Contact:

Re: INFINITY woes

Post 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
pTymN
Posts: 5
Joined: Thu Aug 23, 2007 12:25 pm
Contact:

Re: INFINITY woes

Post by pTymN »

I just did #define INFINITY (float)HUGE_VAL
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: INFINITY woes

Post by slembcke »

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/
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests