VS项目属性配置问题

1  libcpmtd.lib(stdthrow.obj) : error LNK2001: 无法解析的外部符号 __CrtDbgReportW

运行库:多线程 (/MT)

2  

MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) 已经在 LIBCMTD.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) 已经在 LIBCMTD.lib(typinfo.obj) 中定义
1>.AudioIntercom.def(4): warning LNK4017: DESCRIPTION 语句不支持目标平台;已忽略

warning LNK4098: 默认库“MSVCRT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
1>./DebugAASNFO.dll : fatal error LNK1169: 找到一个或多个多重定义的符号

问题:多线程调试 (/MTd)

试试将属性中的这个选项改为:多线程 DLL (/MD)。。。。。可以了(右键-属性-c/c++ 运行库)在debug模式下

release模式  多线程 (/MT)就不会出这种错误了

原文地址:https://www.cnblogs.com/8335IT/p/8522876.html