Remove unnecessary defines from the test. Test by defining TEST_CPP using makefiles or cmake.
In case of any problems with the 'extern "C"' directives, building the executable will fail