Hi,
I followed the steps mentioned in the cppUnit help, however i am =
getting the following link errors while building sample console =
application with cppUnit integrated. Please do the needful.
Linking...
cppUnitTest.obj : error LNK2001: unresolved external symbol "public: =
virtual __thiscall CppUnit::TextUi::TestRunner::~TestRunner(void)" =
(??1TestRunner@TextUi@CppUnit@@UAE@XZ)
cppUnitTest.obj : error LNK2001: unresolved external symbol "public: =
bool __thiscall CppUnit::TextUi::TestRunner::run(class =
std::basic_string<char,struct std::char_traits<char>,class =
std::allocator<char> >,bool,bool,bool)" (?run@TestRunner@TextUi@Cp
pUnit@@QAE_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@=
@_N11@Z)
cppUnitTest.obj : error LNK2001: unresolved external symbol "public: =
void __thiscall CppUnit::TextUi::TestRunner::setOutputter(class =
CppUnit::Outputter *)" =
(?setOutputter@TestRunner@TextUi@CppUnit@@QAEXPAVOutputter@3@@Z)
cppUnitTest.obj : error LNK2001: unresolved external symbol "public: =
__thiscall CppUnit::CompilerOutputter::CompilerOutputter(class =
CompilerOutputter::TestResultCollector *,class =
std::basic_ostream<char,struct std::char_traits<char> > &)" (??0Compil
erOutputter@CppUnit@@QAE@PAVTestResultCollector@1@AAV?$basic_ostream@DU?$=
char_traits@D@std@@@std@@@Z)
cppUnitTest.obj : error LNK2001: unresolved external symbol "public: =
class CppUnit::TestResultCollector & __thiscall =
CppUnit::TextUi::TestRunner::result(void)const " =
(?result@TestRunner@TextUi@CppUnit@@QBEAAVTestResultCollector@3@XZ)
cppUnitTest.obj : error LNK2001: unresolved external symbol "public: =
void __thiscall CppUnit::TextUi::TestRunner::addTest(class CppUnit::Test =
*)" (?addTest@TestRunner@TextUi@CppUnit@@QAEXPAVTest@3@@Z)
cppUnitTest.obj : error LNK2001: unresolved external symbol "public: =
__thiscall CppUnit::TextUi::TestRunner::TestRunner(class =
TextUi::Outputter *)" =
(??0TestRunner@TextUi@CppUnit@@QAE@PAVOutputter@2@@Z)
cppUnitTest.obj : error LNK2001: unresolved external symbol "public: =
static class CppUnit::TestFactoryRegistry & __cdecl =
CppUnit::TestFactoryRegistry::getRegistry(void)" =
(?getRegistry@TestFactoryRegistry@CppUnit@@SAAAV12@XZ)
Debug/cppUnitTest.exe : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.
cppUnitTest.exe - 9 error(s), 0 warning(s)
Thanks and regards
BSR |