compilation in gcc 4.3.0 requires <cstring>

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
I just went through this exact same issue while tring to compile an application using GCC 4.3 in Ubuntu Linux. I had to include <cstring> and <cstdlib> into b2Settings.h. Only then I was able to compile with gcc4.3.

But after fixing the compile errors, I am getting runtime errors. I too am getting the det!=0.0f error when trying to run my application. This exact application compiles and runs just fine using MS Visual Studio 2005.

/Source/Dynamics/Joints/../../Common/b2Math.h:362: b2Vec2 b2Mat22::Solve(const b2Vec2&) const: Assertion `det != 0.0f' failed.
Aborted

I tracked it down and this is occuring during the creation of a rigidbody. Oddly enough, when I triangulate the rigidbody, it no longer fails at this point. It only throws the assert when I pass the convex polygon as one list of verts (but still within the vert limit specified in b2Settings.h).

Any ideas?
Update: Actually triangulating doesn't remove the problem entirely, I triangulated every rigidbody and I'm still getting the det!=0.0f assert. 🙁
Update #2: I removed all of the 'tiny' objects from my level and it no longer triggers the assert(det!=0.0f).

Seems this is an issue of numerical precision, but I don't understand how switching to gcc4.3 from Visual Studio could cause this. When I get some time I may try older versions of gcc because it looks like they changed quite a bit in 4.3.

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