With g++ (gcc 4.3.0) on Linux:
The header <cstring> is required in every file using the four functions:
memcpy(), memmove(), memset(), and strlen().
more precisely, I had to #include <cstring> to the files:
Examples/TestBed/Framework/Render.cpp (strlen)
Examples/TestBed/Tests/BroadPhaseTest.cpp (memset)
Source/Dynamics/Contacts/b2CircleContact.cpp (memcpy)
Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp (memcpy)
Source/Dynamics/Contacts/b2PolyContact.cpp (memcpy)
Source/Collision/b2BroadPhase.cpp (memmove)
Source/Common/b2BlockAllocator.cpp (memset, memcpy)
Everything then compiles fine from make and Makefile.
testbed runs fine in both directories
Examples/TestBed/Gen/fixed/ and
Examples/TestBed/Gen/float
except that ElasticBody crashes immediatly for directory fixed
with the following error message:
testbed:
Dynamics/Joints/../../Common/b2Math.h:292:
b2Mat22 b2Mat22::Invert() const:
Assertion `det != 0.0f' failed.
Aborted
The header <cstring> is required in every file using the four functions:
memcpy(), memmove(), memset(), and strlen().
more precisely, I had to #include <cstring> to the files:
Examples/TestBed/Framework/Render.cpp (strlen)
Examples/TestBed/Tests/BroadPhaseTest.cpp (memset)
Source/Dynamics/Contacts/b2CircleContact.cpp (memcpy)
Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp (memcpy)
Source/Dynamics/Contacts/b2PolyContact.cpp (memcpy)
Source/Collision/b2BroadPhase.cpp (memmove)
Source/Common/b2BlockAllocator.cpp (memset, memcpy)
Everything then compiles fine from make and Makefile.
testbed runs fine in both directories
Examples/TestBed/Gen/fixed/ and
Examples/TestBed/Gen/float
except that ElasticBody crashes immediatly for directory fixed
with the following error message:
testbed:
Dynamics/Joints/../../Common/b2Math.h:292:
b2Mat22 b2Mat22::Invert() const:
Assertion `det != 0.0f' failed.
Aborted