You should include <string.h> (or its C++ equivalent, <cstring>).