[Cppunit-devel] unresolved external symbol
Brought to you by:
blep
From: slatvick <sla...@gm...> - 2005-04-12 00:09:37
|
Cannot solve the problem while compile next: // CODE=20 =20 int Testing() { // Get the top level suite from the registry CppUnit::Test *suite =3D=20 CppUnit::TestFactoryRegistry::getRegistry().makeTest(); /* // Adds the test to the list of test to run CppUnit::TextUi::TestRunner runner; runner.addTest( suite ); // Change the default outputter to a compiler error format outputter runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(), std::cerr ) ); // Run the tests. bool wasSucessful =3D runner.run(); // Return error code 1 if the one of test failed. return wasSucessful ? 0 : 1; */ return 0; } int main(.... // ERROR =20 ------ Build started: Project: MPI_Robot, Configuration: Debug Win32 ------ Linking... MPI_Robot.obj : error LNK2019: unresolved external symbol "public: static= =20 class CppUnit::TestFactoryRegistry & __cdecl=20 CppUnit::TestFactoryRegistry::getRegistry(class=20 std::basic_string<char,struct std::char_traits<char>,class=20 std::allocator<char> > const &)" (?getRegistry@TestFactoryRegistry@CppUnit@= @ SAAAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)= =20 referenced in function "int __cdecl Testing(void)" (?Testing@@YAHXZ) Debug/MPI_Robot.exe : fatal error LNK1120: 1 unresolved externals Build log was saved at "file://c:\Documentes\Development and=20 idies\Programming\Visual Studio Projects\mpi\MPI_Robot\Debug\BuildLog.htm" MPI_Robot - 2 error(s), 0 warning(s) ---------------------- Done ---------------------- Build: 0 succeeded, 1 failed, 0 skipped |