参考文档:https://blog.csdn.net/immcss/article/details/2956428

设置工程时,出现类似如下错误:

msvcprtd.lib(MSVCP80D.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> >(char const *)" ([email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@Z) already defined in USBInfo.lib(USBInfoInterface.obj)

 

解决方法:修改工程属性--配置属性--c/c++--代码通用--实时库类型

error LNK2005:XXXX already defined in XXX.lib

相关文章: