Hi,
To build this on my Ubuntu system with gcc 4.3.3, I had to add #include <cstring> to the following files:
Source/Dynamics/Contacts/b2PolyContact.cpp
Source/Dynamics/Contacts/b2CircleContact.cpp
Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp
Source/Common/b2BlockAllocator.cpp
Source/Collision/b2BroadPhase.cpp
Examples/TestBed/Framework/Render.cpp
Examples/TestBed/Tests/BroadPhaseTest.cpp
Examples/TestBed/Tests/PolyShapes.h
Now everything works ^-^
Specifically for memcpy, memmove, memset, and strlen:
Dynamics/Contacts/b2PolyContact.cpp: In member function ‘virtual void b2PolygonContact::Evaluate(b2ContactListener*)’:
Dynamics/Contacts/b2PolyContact.cpp:53: error: ‘memcpy’ was not declared in this scope
Dynamics/Contacts/b2CircleContact.cpp: In member function ‘virtual void b2CircleContact::Evaluate(b2ContactListener*)’:
Dynamics/Contacts/b2CircleContact.cpp:54: error: ‘memcpy’ was not declared in this scope
Dynamics/Contacts/b2PolyAndCircleContact.cpp: In member function ‘virtual void b2PolyAndCircleContact::Evaluate(b2ContactListener*)’:
Dynamics/Contacts/b2PolyAndCircleContact.cpp:54: error: ‘memcpy’ was not declared in this scope
Common/b2BlockAllocator.cpp: In constructor ‘b2BlockAllocator::b2BlockAllocator()’:
Common/b2BlockAllocator.cpp:63: error: ‘memset’ was not declared in this scope
Common/b2BlockAllocator.cpp: In member function ‘void* b2BlockAllocator::Allocate(int32)’:
Common/b2BlockAllocator.cpp:120: error: ‘memcpy’ was not declared in this scope
Common/b2BlockAllocator.cpp:121: error: ‘memset’ was not declared in this scope
Common/b2BlockAllocator.cpp: In member function ‘void b2BlockAllocator::Clear()’:
Common/b2BlockAllocator.cpp:202: error: ‘memset’ was not declared in this scope
Collision/b2BroadPhase.cpp: In member function ‘uint16 b2BroadPhase::CreateProxy(const b2AABB&, void*)’:
Collision/b2BroadPhase.cpp:260: error: ‘memmove’ was not declared in this scope
Collision/b2BroadPhase.cpp: In member function ‘void b2BroadPhase::DestroyProxy(int32)’:
Collision/b2BroadPhase.cpp:340: error: ‘memmove’ was not declared in this scope
Framework/Render.cpp: In function ‘void DrawString(int, int, const char*, ...)’:
Framework/Render.cpp:183: error: ‘strlen’ was not declared in this scope
Tests/BroadPhaseTest.cpp: In constructor ‘BroadPhaseTest::BroadPhaseTest()’:
Tests/BroadPhaseTest.cpp:114: error: ‘memset’ was not declared in this scope
Tests/PolyShapes.h: In constructor ‘PolyShapes::PolyShapes()’:
Tests/PolyShapes.h:90: error: ‘memset’ was not declared in this scope