MS VC++ 2008 Trunk Compilation Problems

Official forum for the Chipmunk2D Physics Library.
Post Reply
gatekeep
Posts: 1
Joined: Thu Jul 09, 2009 4:44 pm
Contact:

MS VC++ 2008 Trunk Compilation Problems

Post by gatekeep »

In cpSpace.cpp the filterArbiterByCallback function fails to compile properly due to the way the stack is being dynamically allocated. Has anyone run into this issue and been able to fix it?

cpSpace.cpp currently reads:

Code: Select all

filterArbiterByCallback(cpSpace *space)
{
int num = space->arbiters->num;
cpArbiter *ary[num];
I changed it slightly to fix the problem but I still cannot compile (due to a casting error):

Code: Select all

filterArbiterByCallBack(cpSpace *space)
{
int num = space->arbiters->num;
cpArbiter** ary = (cpArbiter *)_alloca(sizeof(cpArbiter*) * num);
Again any ideas?
Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests