Error Compiling Box2D iPhone Build

Hey guys,
I've been trying to setup using Box2D for the iPhone / iPod Touch Simulator, and at first when I tested it there was only one error, which was that the OS 2.2 didn't exist, because it was spelled a bit wrong. When I then changed it to the Simulator's OS 2.2.1, 3.0, and 3.1 (each), it gave me about 50 compile errors. It has stuff such as, cannot declare field, invalid use of undefined type "const", struct "NAME" has no fixture "ANOTHER NAME," etc. There are no .m files that should be changed to .mm, and I'm extremely confused as to what is going wrong. I haven't changed a single thing and none of the iPhone projects will compile...
Thanks,
Mike
Greetings,

I am new to iphone and box2d as well, but I was wondering if you had tried the testbed for box2d? Basically, just open the cocos2d xcode project and then compile. It should have all the tests for cocs2d as well as box2d, chipmunk, denshion, etc. Select the target and then just set the correct simulator (any of them will work) and build and run.

If you want to start from scratch (or close to it), use the box2d template to create a new project and again, select the target and simulator and you should be able to build and run. If you are trying to build without using the template, you are going to run into alot of issues... it's better to use the template or the testbed to start off with.

Hope this helps,
q

Also, you may want to read this post as well:
http://www.box2d.org/forum/viewtopic.php?f=7&t=1283

Original thread: https://box2d.org/forum/viewtopic.php?t=3935