vs2010编译错误之一

现象:

1>------ Build started: Project: testCryptoPP, Configuration: Debug Win32 ------
1>Build started 2013/10/10 14:52:44.
1>InitializeBuildStatus:
1>  Touching "Debug\testCryptoPP.unsuccessfulbuild".
1>ClCompile:
1>  All outputs are up-to-date.
1>  All outputs are up-to-date.
1>ManifestResourceCompile:
1>  All outputs are up-to-date.
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Container_base12::~_Container_base12(void)" (??1_Container_base12@std@@QAE@XZ) already defined in cryptlib.lib(cryptlib.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Container_base12::_Container_base12(void)" (??0_Container_base12@std@@QAE@XZ) already defined in cryptlib.lib(cryptlib.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void __thiscall std::_Container_base12::_Orphan_all(void)" (?_Orphan_all@_Container_base12@std@@QAEXXZ) already defined in cryptlib.lib(cryptlib.obj)
1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>D:\Delfp_work\demos\train\Test\Debug\testCryptoPP.exe : fatal error LNK1169: one or more multiply defined symbols found


方法:

修改Runtime Library,由MDd改为MTd即可。

你可能感兴趣的:(vs2010编译错误之一)