I'm 7.5yrs late to this post, but I've recently come across the same problem trying to get CppUnit up and running using Cygwin on Win10. The short answer is: before using CPPUNIT_TEST_SUITE_REGISTRATION I had to: #include <cppunit/Portability.h> I put it in my test.cpp file just before I included test.h My explanation is as follows: If you #include <cppunit/extensions/HelperMacros.h> and if you follow the files included within HelperMacros.h, you will include a file called cppunit/Portability.h....