Menu

I can not compile in VC++6.0., please help..

Help
Anonymous
2003-08-15
2003-08-29
  • Anonymous

    Anonymous - 2003-08-15

    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

     
    • Tim Haughton

      Tim Haughton - 2003-08-29

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.