error LNK2005 咋处理??
我在编译一个开源项目代码 遇到如下的错误 不会主力啊
我的是vs2008;在Project->C/C++->Code Generation->Runtime Library 设置了“ 多线程调试 DLL (/MDd)”
错误 1 error LNK2005: _free 已经在 Libcmtd.lib(dbgfree.obj) 中定义 MSVCRTD.lib
错误 2 error LNK2005: _malloc 已经在 Libcmtd.lib(dbgmalloc.obj) 中定义 MSVCRTD.lib
错误 3 error LNK2005: _sprintf 已经在 Libcmtd.lib(sprintf.obj) 中定义 MSVCRTD.lib
错误 4 error LNK2005: _atoi 已经在 Libcmtd.lib(atox.obj) 中定义 MSVCRTD.lib
错误 5 error LNK2005: __invalid_parameter 已经在 Libcmtd.lib(invarg.obj) 中定义 MSVCRTD.lib E错误 6 error LNK2005: __CrtDbgReportW 已经在 Libcmtd.lib(dbgrptw.obj) 中定义 MSVCRTD.lib
错误 7 error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@错误 8 error LNK2005: "public: __thiscall std::exception::exception(void)" (??0exception@std@@QAE@XZ) 已经在 Libcmtd.lib(stdexcpt.obj) 中定义 MSVCRTD.lib
错误 9 error LNK2005: "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) 已经在 Libcmtd.lib(stdexcpt.obj) 中定义 MSVCRTD.lib
错误 10 error LNK2005: "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z) 已经在 Libcmtd.lib(stdexcpt.obj) 中定义 MSVCRTD.lib
错误 11 error LNK2005: _memmove_s 已经在 Libcmtd.lib(memmove_s.obj) 中定义 MSVCRTD.lib
错误 12 error LNK2005: __localtime64 已经在 Libcmtd.lib(loctim64.obj) 中定义 MSVCRTD.lib
错误 13 error LNK2005: _strtol 已经在 Libcmtd.lib(strtol.obj) 中定义 MSVCRTD.lib
错误 14 error LNK2005: _fclose 已经在 Libcmtd.lib(fclose.obj) 中定义 MSVCRTD.lib
错误 15 error LNK2005: _strrchr 已经在 Libcmtd.lib(strrchr.obj) 中定义 MSVCRTD.lib
错误 16 error LNK2005: _strcat_s 已经在 Libcmtd.lib(strcat_s.obj) 中定义 MSVCRTD.lib
错误 18 error LNK2005: _strftime 已经在 Libcmtd.lib(strftime.obj) 中定义 MSVCRTD.lib
错误 19 error LNK2005: _vsprintf 已经在 Libcmtd.lib(vsprintf.obj) 中定义 MSVCRTD.lib
错误 20 error LNK2005: __vscprintf 已经在 Libcmtd.lib(vsprintf.obj) 中定义 MSVCRTD.lib
错误 21 error LNK2005: __stricmp 已经在 Libcmtd.lib(stricmp.obj) 中定义 MSVCRTD.lib
错误 22 error LNK2005: _strcpy_s 已经在 Libcmtd.lib(strcpy_s.obj) 中定义 MSVCRTD.lib
错误 23 error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) 已经在 Libcmtd.lib(typinfo.obj) 中定义 MSVCRTD.lib
错误 24 error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) 已经在 Libcmtd.lib(typinfo.obj) 中定义 MSVCRTD.lib