
24 Aug
2011
24 Aug
'11
4:33 a.m.
Hi all, if one uses the boost unit test macros (see below), qtcreator marks the BOOST_CHECK(...) macros as syntax error (expected ;): #include <boost/test/unit_test.hpp> #include "person.h" BOOST_AUTO_TEST_CASE(Person1) { Person p("Hugo", "Tester"); BOOST_CHECK(p.firstname() == "Hugo"); BOOST_CHECK(p.lastname() == "Tester"); } Does anybody know how to avoid this (yes, I can use the Qt unit testing framework, but thats not a solution in this special case)? -- Wilhelm