• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            李錦俊(mybios)的blog

            游戲開(kāi)發(fā) C++ Cocos2d-x OpenGL DirectX 數(shù)學(xué) 計(jì)算機(jī)圖形學(xué) SQL Server

              C++博客 :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
              86 Posts :: 0 Stories :: 370 Comments :: 0 Trackbacks

            公告

            QQ:30743734
            EMain:mybios@qq.com

            常用鏈接

            留言簿(16)

            我參與的團(tuán)隊(duì)

            最新隨筆

            搜索

            •  

            積分與排名

            • 積分 - 371573
            • 排名 - 67

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            煩人的錯(cuò)誤。。搞了一個(gè)多小時(shí)才解決,寫(xiě)下來(lái)記錄一下。

            解決辦法:保證需要鏈接的幾個(gè)項(xiàng)目的運(yùn)行時(shí)庫(kù)使用同一個(gè)類型就OK了!例如我的工程中有GameCore、Plugin_D3D9RenderSystem、Plugin_Win32Platform三個(gè)工程,那么就去設(shè)置每個(gè)工程的C/C++ ->代碼生成->運(yùn)行時(shí)庫(kù),統(tǒng)一設(shè)置成“多線程 DLL(/MD)”,就可以了。如果其中一個(gè)不是MD,就會(huì)出現(xiàn)以下的錯(cuò)誤。很煩人。希望同樣遇到這個(gè)問(wèn)題的朋友能少走彎路

            以下是鏈接錯(cuò)誤信息:
            msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: int __thiscall std::ios_base::width(int)" (?width@ios_base@std@@QAEHH@Z) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定義
            msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::locale::~locale(void)" (??1locale@std@@QAE@XZ) 已經(jīng)在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定義
            msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: void __thiscall std::locale::facet::_Register(void)" (?_Register@facet@locale@std@@QAEXXZ) 已經(jīng)在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定義
            msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: void __thiscall std::locale::facet::_Incref(void)" (?_Incref@facet@locale@std@@QAEXXZ) 已經(jīng)在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定義
            msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::locale::id::operator unsigned int(void)" (??Bid@locale@std@@QAEIXZ) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 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) 已經(jīng)在 msvcprt.lib(MSVCP80.dll) 中定義
            libcpmt.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) 已經(jīng)在 msvcprt.lib(MSVCP80.dll) 中定義
            libcpmt.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) 已經(jīng)在 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) 已經(jīng)在 Plugin_Win32Platform.lib(Win32InputSystem.obj) 中定義
               正在創(chuàng)建庫(kù) ../Lib/GameCore.lib 和對(duì)象 ../Lib/GameCore.exp
            ../Bin/GameCore.dll : fatal error LNK1169: 找到一個(gè)或多個(gè)多重定義的符號(hào)

            如果本文對(duì)你的開(kāi)發(fā)有所幫助,并且你手頭恰好有零錢(qián)。

            不如打賞我一杯咖啡,鼓勵(lì)我繼續(xù)分享優(yōu)秀的文章。




            posted on 2006-12-22 11:14 李錦俊(mybios) 閱讀(16949) 評(píng)論(15)  編輯 收藏 引用 所屬分類: VC Debug

            Feedback

            # re: 今天碰到了LINK2005的問(wèn)題 2006-12-22 12:19 pengkuny
            LINK2005我也遇到不少次,
            不過(guò)聽(tīng)說(shuō)它的錯(cuò)誤原因很復(fù)雜,有很多種,
            唉,搞不清楚啊  回復(fù)  更多評(píng)論
              

            # re: 今天碰到了LINK2005的問(wèn)題 2006-12-22 13:01 李錦俊
            是的。原因不少。這個(gè)只是其中之一。網(wǎng)上有些文章有介紹的。都比較常見(jiàn)  回復(fù)  更多評(píng)論
              

            # re: 今天碰到了LINK2005的問(wèn)題 2006-12-25 17:46 V
            設(shè)置 /FORCE:MULTIPLE 就可以避免LNK1169 & LNK2005  回復(fù)  更多評(píng)論
              

            # re: 今天碰到了LINK2005的問(wèn)題 2006-12-28 21:05 fff
            請(qǐng)問(wèn):FORCE:MULTIPLE怎么設(shè)置啊?
            我的郵箱weiweiyang2005@163.com
            謝謝!
              回復(fù)  更多評(píng)論
              

            # re: 今天碰到了LINK2005的問(wèn)題 2006-12-30 15:25 李錦俊
            在項(xiàng)目屬性->鏈接器->命令行中設(shè)置  回復(fù)  更多評(píng)論
              

            # re: 今天碰到了LINK2005的問(wèn)題 2007-01-27 21:21 包子
            哎,我上個(gè)星期在2005上面也是花了n多時(shí)間。遇到n多莫名其妙的問(wèn)題,簡(jiǎn)直是郁悶,不過(guò)也是解決一個(gè)就記錄一個(gè)啊。哈哈  回復(fù)  更多評(píng)論
              

            # re: 今天碰到了LINK2005的問(wèn)題 2007-07-09 15:19 vista
            @李錦俊
            c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(24) : fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]

            修改完提示上面段信息。  回復(fù)  更多評(píng)論
              

            # re: 今天碰到了LINK2005的問(wèn)題 2007-07-20 10:46 hehe
            贊。我也遇到同樣的問(wèn)題,看了你的博客就解決了。呵呵  回復(fù)  更多評(píng)論
              

            # re: 今天碰到了LINK2005的問(wèn)題[未登錄](méi) 2007-07-20 12:33 李錦俊
            @vista
            既然不能使用這個(gè),那就使用其他線程模式啊。  回復(fù)  更多評(píng)論
              

            # re: 今天碰到了LINK2005的問(wèn)題 2007-08-29 11:24 重劍
            看來(lái)不少人遇到過(guò)這個(gè)問(wèn)題

            看我的血淚史
            http://www.shnenglu.com/lai3d/archive/2007/07/25/28734.aspx  回復(fù)  更多評(píng)論
              

            # re: 今天碰到了LINK2005的問(wèn)題 2008-10-22 18:28 bili
            謝謝,解決了!  回復(fù)  更多評(píng)論
              

            # re: 今天碰到了LINK2005的問(wèn)題 2008-12-22 18:25 RichardHe
            怎么解決的?  回復(fù)  更多評(píng)論
              

            # re: 今天碰到了LINK2005的問(wèn)題 2008-12-22 20:13 李錦俊
            @RichardHe
            文章開(kāi)頭寫(xiě)了。如下:
            解決辦法:保證需要鏈接的幾個(gè)項(xiàng)目的運(yùn)行時(shí)庫(kù)使用同一個(gè)類型就OK了!例如我的工程中有GameCore、Plugin_D3D9RenderSystem、Plugin_Win32Platform三個(gè)工程,那么就去設(shè)置每個(gè)工程的C/C++ ->代碼生成->運(yùn)行時(shí)庫(kù),統(tǒng)一設(shè)置成“多線程 DLL(/MD)”,就可以了。如果其中一個(gè)不是MD,就會(huì)出現(xiàn)以下的錯(cuò)誤。很煩人。希望同樣遇到這個(gè)問(wèn)題的朋友能少走彎路  回復(fù)  更多評(píng)論
              

            # re: 今天碰到了LINK2005的問(wèn)題 2009-04-15 10:51 zzz822163
            謝謝,我也解決了!  回復(fù)  更多評(píng)論
              

            # re: 今天碰到了LINK2005的問(wèn)題 2010-09-02 10:02 ceciliawing
            謝謝你~ 幫助我這個(gè)菜鳥(niǎo) 解決了問(wèn)題~~  回復(fù)  更多評(píng)論
              

            亚洲精品视频久久久| 国内精品久久久久久99蜜桃| 精品熟女少妇aⅴ免费久久| AAA级久久久精品无码区| 老司机午夜网站国内精品久久久久久久久| 久久中文字幕无码专区| 久久精品中文字幕无码绿巨人| 久久综合九色综合久99 | 久久国产亚洲高清观看| 国产精品九九九久久九九| 久久国产免费直播| 97久久精品人妻人人搡人人玩| 久久久久无码精品国产app| 色综合久久久久综合体桃花网| 国产综合成人久久大片91| 久久香蕉国产线看观看精品yw| 99久久精品国产一区二区蜜芽| 亚洲综合精品香蕉久久网| 99久久无码一区人妻| 国产美女久久精品香蕉69| 久久久SS麻豆欧美国产日韩| 久久精品综合一区二区三区| 秋霞久久国产精品电影院| 久久狠狠高潮亚洲精品| 久久国产劲爆AV内射—百度| 精品综合久久久久久88小说| 国产亚洲欧美成人久久片| 久久香综合精品久久伊人| 久久丫精品国产亚洲av不卡 | 色综合合久久天天综合绕视看| 精品久久久无码21p发布| 国产精品久久婷婷六月丁香| 久久精品无码免费不卡| 91精品国产综合久久香蕉| 国产韩国精品一区二区三区久久| 久久精品国产99久久久古代| 婷婷久久五月天| 97久久国产综合精品女不卡| 久久精品免费一区二区| 久久香蕉超碰97国产精品| 99精品久久精品|