When compiling my test suite CppUnit againts, I add the following error: I Understand this problem, as the example link provided is OK. I am using macros to register my test: from my test class CPPUNIT_NS Receives: TestFixture And here is the main code:
Error LNK2019: Unsolved exotic symbol "public: virtual __thiscall CppUnit :: TextTestRunner :: ~ TextTestRunner (zero)" (?? 1TextTestRunner @ CppUnit @@ United Arab Emirates @ XZ) referenced in the function _wmain
CPPUNIT_TEST_SUITE_REGISTRATION CPPUNIT_TEST_SUITE etc.
integer _tmain (int argc, _TCHAR * argv []) // {from the registry Go Top Level Suit CPPUNIT_NS :: Test * Suit = CPPUNIT_NS :: TestFactoryRegister :: Milliology () Mactest (); // test adds CPPUNIT_NS :: TextUi :: TestRunner runner to run the test list; Runners. Adjust (suit); // runner.setOutputter outputter to change the default outputter to a compiler error format (new CPPUNIT_NS :: CompilerOutputter (& runner.result (), CPPUNIT_NS :: stdCOut ())); // Run the test was bullish = runner. // Return error code 1 if the exam failed to return was correction? 0: 1; }
Are you certain that you've added the appropriate library for Linker -> Input -> Additional dependency text box for your project? I believe (for release / Unicode version) should be:
testrunneru.lib cppunit.lib
You also need to make sure Need to find the library by linking Linker -> General -> Add additional directory names to additional library directories.
An actual section, but it happened to me once, I needed to rebuild the sepupenate. I think my compiler was upgraded or patched.
It can also be useful if you can post a very small, complete, source file that reproduces the problem, I think that you are missing only in the included statements here?
Comments
Post a Comment