in StringSplitter.h use 1024 as MAX class StringSplitter{ private: static const unsigned int MAX = 1024;