Question

This is the current code I have from their fundamental example: http://unittest-cpp.sourceforge.net/UnitTest++.html

#include <unittest++/UnitTest++.h>

TEST(FailSpectacularly)
{
    CHECK(false);
}

int main() {
    return UnitTest::RunAllTests();
}

The include exists but I'm receiving errors: undefined reference to UnitTest::Test::* and UnitTest::* where * is some arbitrary class/method within the UnitTest++ library.

How can I get this to compile properly?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top