Hi there, I've successfully compiled Box2D in Ubuntu 9.10. However, I had to make a few small modifications to the code since memset(), memmove() and strlen() were not defined in some files. I had to include cstring in the following files to compile it without errors:
/Dynamics/Contacts/b2PolyContact.cpp
/Dynamics/Contacts/b2CircleContact.cpp
/Dynamics/Contacts/b2PolyAndCircleContact.cpp
/Common/b2BlockAllocator.o Common/b2BlockAllocator.cpp
/Collision/b2BroadPhase.cpp
The test bed also needed cstring included in the following files:
/Examples/TestBed/Framework/Render.cpp
/Examples/TestBed/Tests/BroadPhaseTest.cpp
/Examples/TestBed/Tests/TestEntries.cpp
After including it in these files, it compiled successfully. Hope this helps. 🙂
/Dynamics/Contacts/b2PolyContact.cpp
/Dynamics/Contacts/b2CircleContact.cpp
/Dynamics/Contacts/b2PolyAndCircleContact.cpp
/Common/b2BlockAllocator.o Common/b2BlockAllocator.cpp
/Collision/b2BroadPhase.cpp
The test bed also needed cstring included in the following files:
/Examples/TestBed/Framework/Render.cpp
/Examples/TestBed/Tests/BroadPhaseTest.cpp
/Examples/TestBed/Tests/TestEntries.cpp
After including it in these files, it compiled successfully. Hope this helps. 🙂