今天碰到了LINK2005的问题

今天碰到了LINK2005的问题
烦人的错误。。搞了一个多小时才解决,写下来记录一下。

解决办法:保证需要链接的几个项目的运行时库使用同一个类型就OK了!例如我的工程中有GameCore、Plugin_D3D9RenderSystem、Plugin_Win32Platform三个工程,那么就去设置每个工程的C/C++ ->代码生成->运行时库,统一设置成“多线程 DLL(/MD)”,就可以了。如果其中一个不是MD,就会出现以下的错误。很烦人。希望同样遇到这个问题的朋友能少走弯路

以下是链接错误信息:
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: int __thiscall std::ios_base::width(int)" ( ?width@ios_base@std@@QAEHH@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: int __thiscall std::ios_base::width(void)const " ( ?width@ios_base@std@@QBEHXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: int __thiscall std::ios_base::flags(void)const " ( ?flags@ios_base@std@@QBEHXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: bool __thiscall std::ios_base::good(void)const " ( ?good@ios_base@std@@QBE_NXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: int __thiscall std::ios_base::rdstate(void)const " ( ?rdstate@ios_base@std@@QBEHXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" ( ?length@?$char_traits@D@std@@SAIPBD@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_ostream<wchar_t,struct std::char_traits<wchar_t> > & __cdecl std::operator<<<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >(class std::basic_ostream<wchar_t,struct std::char_traits<wchar_t> > &,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &)" ( ??$?6_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: wchar_t __thiscall std::basic_ios<wchar_t,struct std::char_traits<wchar_t> >::fill(void)const " ( ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > __thiscall std::basic_ostringstream<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >::str(void)const " ( ?str@?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_ostringstream<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >::basic_ostringstream<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >(int)" ( ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_ostream<wchar_t,struct std::char_traits<wchar_t> > & __thiscall std::basic_ostream<wchar_t,struct std::char_traits<wchar_t> >::operator<<(int)" ( ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@H@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &)" ( ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: void __thiscall std::basic_ostream<wchar_t,struct std::char_traits<wchar_t> >::_Osfx(void)" ( ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_ostream<wchar_t,struct std::char_traits<wchar_t> > * __thiscall std::basic_ios<wchar_t,struct std::char_traits<wchar_t> >::tie(void)const " ( ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: void __thiscall std::basic_streambuf<wchar_t,struct std::char_traits<wchar_t> >::_Lock(void)" ( ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: void __thiscall std::basic_streambuf<wchar_t,struct std::char_traits<wchar_t> >::_Unlock(void)" ( ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: unsigned short __thiscall std::basic_streambuf<wchar_t,struct std::char_traits<wchar_t> >::sputc(wchar_t)" ( ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >::~basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >(void)" ( ??1?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ) 已经在 Plugin_Win32Platform.lib(Plugin_Win32Platform.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >(wchar_t const *)" ( ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_W@Z) 已经在 Plugin_Win32Platform.lib(Plugin_Win32Platform.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >(void)" ( ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: void __thiscall std::basic_ostringstream<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >::`vbase destructor'(void)" ( ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_ostream<wchar_t,struct std::char_traits<wchar_t> > & __thiscall std::basic_ostream<wchar_t,struct std::char_traits<wchar_t> >::flush(void)" ( ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_streambuf<wchar_t,struct std::char_traits<wchar_t> > * __thiscall std::basic_ios<wchar_t,struct std::char_traits<wchar_t> >::rdbuf(void)const " ( ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: void __thiscall std::basic_ios<wchar_t,struct std::char_traits<wchar_t> >::setstate(int,bool)" ( ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::locale __thiscall std::ios_base::getloc(void)const " ( ?getloc@ios_base@std@@QBE?AVlocale@2@XZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: static unsigned int __cdecl std::ctype<wchar_t>::_Getcat(class std::locale::facet const * *)" ( ?_Getcat@?$ctype@_W@std@@SAIPAPBVfacet@locale@2@@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: wchar_t __thiscall std::ctype<wchar_t>::widen(char)const " ( ?widen@?$ctype@_W@std@@QBE_WD@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::locale::facet const * __thiscall std::locale::_Getfacet(unsigned int)const " ( ?_Getfacet@locale@std@@QBEPBVfacet@12@I@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::locale::~locale(void)" ( ??1locale@std@@QAE@XZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: void __thiscall std::locale::facet::_Register(void)" ( ?_Register@facet@locale@std@@QAEXXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: void __thiscall std::locale::facet::_Incref(void)" ( ?_Incref@facet@locale@std@@QAEXXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::locale::id::operator unsigned int(void)" ( ??Bid@locale@std@@QAEIXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: static unsigned short __cdecl std::char_traits<wchar_t>::eof(void)" ( ?eof@?$char_traits@_W@std@@SAGXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: static bool __cdecl std::char_traits<wchar_t>::eq_int_type(unsigned short const &,unsigned short const &)" ( ?eq_int_type@?$char_traits@_W@std@@SA_NABG0@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "bool __cdecl std::operator<<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &)" ( ??$?M_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z) 已经在 Plugin_Win32Platform.lib(Win32RenderWindow.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "protected: wchar_t const * __thiscall std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >::_Myptr(void)const " ( ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IBEPB_WXZ) 已经在 Plugin_Win32Platform.lib(Plugin_Win32Platform.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: wchar_t const * __thiscall std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >::c_str(void)const " ( ?c_str@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPB_WXZ) 已经在 Plugin_Win32Platform.lib(Win32LogSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "protected: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Myptr(void)const " ( ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IBEPBDXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: unsigned int __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::size(void)const " ( ?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " ( ?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.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> >(void)" ( ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.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 *)" ( ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.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> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" ( ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: bool __thiscall std::ios_base::fail(void)const " ( ?fail@ios_base@std@@QBE_NXZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > & __thiscall std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >::erase(unsigned int,unsigned int)" ( ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@II@Z) 已经在 Plugin_Win32Platform.lib(Plugin_Win32Platform.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: void __thiscall std::basic_ios<wchar_t,struct std::char_traits<wchar_t> >::clear(int,bool)" ( ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: unsigned int __thiscall std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >::size(void)const " ( ?size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ) 已经在 Plugin_Win32Platform.lib(Plugin_Win32Platform.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "protected: wchar_t * __thiscall std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >::_Myptr(void)" ( ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEPA_WXZ) 已经在 Plugin_Win32Platform.lib(Plugin_Win32Platform.obj) 中定义
msvcprt.lib(MSVCP80.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> >(void)" ( ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: int __thiscall std::basic_streambuf<wchar_t,struct std::char_traits<wchar_t> >::sputn(wchar_t const *,int)" ( ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPB_WH@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: static unsigned int __cdecl std::char_traits<wchar_t>::length(wchar_t const *)" ( ?length@?$char_traits@_W@std@@SAIPB_W@Z) 已经在 Plugin_Win32Platform.lib(Plugin_Win32Platform.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::assign(char const *,unsigned int)" ( ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::append(char const *,unsigned int)" ( ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
libcpmt.lib(ios.obj) : error LNK2005: "public: static void __cdecl std::ios_base::_Addstd(class std::ios_base *)" ( ?_Addstd@ios_base@std@@SAXPAV12@@Z) 已经在 msvcprt.lib(MSVCP80.dll) 中定义
libcpmt.lib(ios.obj) : error LNK2005: "private: static void __cdecl std::ios_base::_Ios_base_dtor(class std::ios_base *)" ( ?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z) 已经在 msvcprt.lib(MSVCP80.dll) 中定义
libcpmt.lib(locale0.obj) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" ( ?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ) 已经在 msvcprt.lib(MSVCP80.dll) 中定义
libcpmt.lib(locale0.obj) : error LNK2005: "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" ( ?facet_Register@facet@locale@std@@CAXPAV123@@Z) 已经在 msvcprt.lib(MSVCP80.dll) 中定义
libcpmt.lib(locale0.obj) : error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)" ( ?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z) 已经在 msvcprt.lib(MSVCP80.dll) 中定义
libcpmt.lib(locale0.obj) : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator=(char const *)" ( ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z) 已经在 msvcprt.lib(MSVCP80.dll) 中定义
libcpmt.lib(locale0.obj) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(void)" ( ?_Init@locale@std@@CAPAV_Locimp@12@XZ) 已经在 msvcprt.lib(MSVCP80.dll) 中定义
libcpmt.lib(locale0.obj) : error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)" ( ?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z) 已经在 msvcprt.lib(MSVCP80.dll) 中定义
libcpmt.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" ( ??0_Lockit@std@@QAE@H@Z) 已经在 msvcprt.lib(MSVCP80.dll) 中定义
libcpmt.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" ( ??1_Lockit@std@@QAE@XZ) 已经在 msvcprt.lib(MSVCP80.dll) 中定义
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > & __thiscall std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >::assign(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &)" ( ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@@Z) 已经在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定义
   正在创建库 ../Lib/GameCore.lib 和对象 ../Lib/GameCore.exp
../Bin/GameCore.dll : fatal error LNK1169: 找到一个或多个多重定义的符号

你可能感兴趣的:(今天碰到了LINK2005的问题)