ここの回答で説明されているメイクファイルがあります。
私は私のcppファイルに持っています:
#include "CppUTest/CommandLineTestRunner.h"
int main(int ac, const char** av)
{
/* These checks are here to make sure assertions outside test runs don't crash */
CHECK(true);
LONGS_EQUAL(1, 1);
return CommandLineTestRunner::RunAllTests(ac, av);
}
次に、エラーが発生します。
undefined reference to `CommandLineTestRunner::RunAllTests(int, char const**)'
何を試してみますか?