本文共 580 字,大约阅读时间需要 1 分钟。
转载请标明是引用于
欢迎大家拍砖
1、报错:
1>正在链接...1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) 已经在 libcmt.lib(typinfo.obj) 中定义1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) 已经在 libcmt.lib(typinfo.obj) 中定义1> 正在创建库 D:\Company\xred\base\server\XLogon\Release\XLogon.lib 和对象 D:\Company\xred\base\server\XLogon\Release\XLogon.exp2、
把工程属性中的链接上的“nafxcw.lib libcmt.lib”去掉,且把运行时库改为“多线程 DLL (/MD)”