Error Compiling Bullet

sandeep_slash
Posts: 48
Joined: Thu Jul 10, 2008 6:36 pm

Error Compiling Bullet

Post by sandeep_slash »

Hello,

I'm trying to build Bullet for X360. (using Boost build)

It's giving me error msgs in "Extras\BulletMultiThreaded\SpuRaycastTask\SpuRaycastTask.cpp".
Func: spuWalkStacklessQuantizedTreeAgainstRays()
Line: 407, 408, 409, etc.

"numWorkUnits" is not const. The compiler is expecting a constant expression.

Thanks,
Sandeep.
User avatar
John McCutchan
Posts: 133
Joined: Wed Jul 27, 2005 1:05 pm
Location: Berkeley, CA

Re: Error Compiling Bullet

Post by John McCutchan »

You've found a C99ism that crept into the code. Unfortunately, your compiler doesn't support C99. As a work around you can change the array definitions to use SPU_RAYCAST_WORK_UNITS_PER_TASK. This will be fixed in the next Bullet release.

Thanks,
John