1、1>msvcPRt.lib(MSVCP90.dll) : error LNK2005: "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)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) 已經(jīng)在 QQDLL.obj 中定義
解決方法:lib工程里的"C/C++"->"Code Generation"->"Runtime Library"里面的Muti-thread Debug (/MTd) 改為 Muti-thread Debug DLL(/MDd) 。
2、Cppunit 用法 在VC++ Directories 下添加解決Cppunit的相對路徑。
$(SolutionDir)../cppunit-1.12.1/lib
新聞熱點
疑難解答