I think this file should be test_memory.hpp, not test_memory.cpp, because it's #included by a bunch of files.