Hello,
I am desperately trying to make unittest compiled in VC++ 6.0.
I followed every step in Cookbook but I met the following link error.
I really appreciate if somebody can give me an idea how I can solve this problem.
I had this problem when trying to link against the static lib. I find that it goes away if you link against the dynamic libs, i.e. cppunitd_dll.lib and cppunit_dll.lib.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am desperately trying to make unittest compiled in VC++ 6.0.
I followed every step in Cookbook but I met the following link error.
I really appreciate if somebody can give me an idea how I can solve this problem.
cppunitd.lib(SourceLine.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,cla
ss std::allocator<char> >(void)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ)
cppunitd.lib(CompilerOutputter.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<ch
ar>,class std::allocator<char> >(void)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ)
cppunitd.lib(TestCase.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >(void)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ)
cppunitd.lib(Exception.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,clas
s std::allocator<char> >(void)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ)
cppunitd.lib(SynchronizedObject.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
cppunitd.lib(TestFailure.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
I had this problem when trying to link against the static lib. I find that it goes away if you link against the dynamic libs, i.e. cppunitd_dll.lib and cppunit_dll.lib.