error LNK2005 and error LNK2019
error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "public: double & __thiscall std::vector<double,class std
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _strtol already defined in LIBCMTD.lib(strtol.obj)
this kind error, just need change the C/C++->code generation-> runtime library "Multi-threaded Debug (/MTd)" ->Multi-threaded Debug DLL (/MDd)
error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "public: double & __thiscall std::vector<double,class std
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _strtol already defined in LIBCMTD.lib(strtol.obj)
this kind error, just need change the C/C++->code generation-> runtime library "Multi-threaded Debug (/MTd)" ->Multi-threaded Debug DLL (/MDd)
本文将详细解释并解决在使用C/C++编译器时遇到的MSVCRT.lib与LIBCMTD.lib中定义重复及引用未定义符号的问题,包括如何更改运行时库配置来避免此类错误。
4587

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



