"Make" failed in linux(Ubuntu)

I download box2d 2.0.1,and "make"
It jump out an error,
Quote:
Dynamics/Contacts/b2PolyContact.cpp:53: error: ‘memcpy’ was not declared in this scope

So i looking into the include chain and add an include
Code:
#include <cstring>

in the common/b2math.h
and make again
the previous error have passed,but then another error jump out
Quote:
Common/b2BlockAllocator.cpp:202: error: ‘memset’ was not declared in this scope

again i add an include
Code:
#include <cstring>

in the Common/b2BlockAllocator.h
then everything is OK and build an static library and the example application(Both with fixed and float)

So,is that a bug?
That someone forgot to include <cstring> 🙂

===================================
By the way,the project file for the codeblock(workspace,cbp) in the build directory does't work too(under linux).
It seems that is did not include all the necessary files that should be included in this project.
So the build process got many error message like "undeclared XXX" something like that.
It's not really a bug, but should be fixed non-the-less. Newer versions of GCC (4.3 and higher) do not automatically add dependencies (like <cstring>) when building. This was done to increase speed of compilation. See here for someone who seems to know more about this.

Result is that for some newer versions of GCC '#include <cstring>' should be added to those files.

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