正确解决"error LNK2005: “private: __thiscall type_info::type_info(class type_info const &)” (??0type_info@@AAE@ABV0@@Z) 已经在 LIBCMT.lib(typinfo.obj) 中定义 MSVCRTD.lib"的有效解决方法
报错问题
error LNK2005: “private: __thiscall type_info::type_info(class type_info const &)” (??0type_info@@AAE@ABV0@@Z) 已经在 LIBCMT.lib(typinfo.obj) 中定义 MSVCRTD.lib
报错原因
这个错误信息表明在你的项目链接过程中出现了多重定义错误。具体来说,type_info类的复制构造函数被多次定义,分别在LIBCMT.lib(静态多线程C运行时库)和MSVCRTD.lib(多线程调试DLL运行时库)中。
解决这个
订阅专栏 解锁全文
2167

被折叠的 条评论
为什么被折叠?



