關於部落格
  • 117911

    累積人氣

  • 1

    今日人氣

    0

    訂閱人氣

wx LNK 2005(vc9,cb) $basic_string@_WU? ... etc.

 
version: 
vc: visual c++ 2008(vc9)
cb: svn build rev 9677
wx: 3.0.0

situation:( Release, static library)
msvcprt.lib(MSVCP90.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) 已在 MyTableCBMain.obj 中定義過了
...
etc
 
solution:
1. Open visual studio solution at "#WXDIRbuildmsw". for example:


2. Selecting all projects in the solution


3. Modifying to be MT in the Property Page( Alt + F7 )


4. Building solution( projects )[ F7 or Build > Build Solution ]

5. Rebuild project in Code::Blocks again!


See also:
Link, wxNote
Link, wxLIBPaste, lib 便利貼
Link, wxFrame
Link, wx, LNK2019( vc9, cb)
Link, vc, General Error C101008d 與防毒軟體迷思
Link, vc, error LNK2019 筆記
Link, vcGetStart, 如何在 Visual C++ 中建立一個可執行 cpp 檔案(Visual stduio 2010)

<full log>
msvcprt.lib(MSVCP90.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) 已在 MyTableCBMain.obj 中定義過了
msvcprt.lib(MSVCP90.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) 已在 MyTableCBMain.obj 中定義過了
msvcprt.lib(MSVCP90.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) 已在 MyTableCBMain.obj 中定義過了
msvcprt.lib(MSVCP90.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) 已在 MyTableCBApp.obj 中定義過了
msvcprt.lib(MSVCP90.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> >::operator=(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &)" (??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@ABV01@@Z) 已在 MyTableCBMain.obj 中定義過了
msvcprt.lib(MSVCP90.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(wchar_t const *)" (?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W@Z) 已在 MyTableCBMain.obj 中定義過了
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: virtual __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::~basic_streambuf<char,struct std::char_traits<char> >(void)" (??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAE@XZ) 已在 libcpmt.lib(cout.obj) 中定義過了
msvcprt.lib(MSVCP90.dll) : error LNK2005: "protected: __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::basic_streambuf<char,struct std::char_traits<char> >(void)" (??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@XZ) 已在 libcpmt.lib(cout.obj) 中定義過了
msvcprt.lib(MSVCP90.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) 已在 MyTableCBApp.obj 中定義過了
msvcprt.lib(MSVCP90.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) 已在 MyTableCBMain.obj 中定義過了
msvcprt.lib(MSVCP90.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> >::append(wchar_t const *)" (?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W@Z) 已在 MyTableCBMain.obj 中定義過了
msvcprt.lib(MSVCP90.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(wchar_t const *,unsigned int)" (?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_WI@Z) 已在 MyTableCBMain.obj 中定義過了
msvcprt.lib(MSVCP90.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 &,unsigned int,unsigned int)" (?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@II@Z) 已在 MyTableCBMain.obj 中定義過了
msvcprt.lib(MSVCP90.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> >::append(wchar_t const *,unsigned int)" (?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_WI@Z) 已在 MyTableCBMain.obj 中定義過了
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) 已在 libcpmt.lib(cout.obj) 中定義過了
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: static bool __cdecl std::char_traits<char>::eq_int_type(int const &,int const &)" (?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z) 已在 libcpmt.lib(cout.obj) 中定義過了
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: static int __cdecl std::char_traits<char>::eof(void)" (?eof@?$char_traits@D@std@@SAHXZ) 已在 libcpmt.lib(cout.obj) 中定義過了
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?length@?$char_traits@D@std@@SAIPBD@Z) 已在 libcpmt.lib(string.obj) 中定義過了
msvcprt.lib(MSVCP90.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) 已在 MyTableCBMain.obj 中定義過了
msvcprt.lib(MSVCP90.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> >::append(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,unsigned int,unsigned int)" (?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@II@Z) 已在 MyTableCBMain.obj 中定義過了
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::clear(int,bool)" (?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) 已在 libcpmt.lib(cout.obj) 中定義過了
msvcprt.lib(MSVCP90.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) 已在 libcpmt.lib(string.obj) 中定義過了
msvcprt.lib(MSVCP90.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) 已在 libcpmt.lib(string.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _free 已在 LIBCMT.lib(free.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _strncmp 已在 LIBCMT.lib(strncmp.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _malloc 已在 LIBCMT.lib(malloc.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _exit 已在 LIBCMT.lib(crt0dat.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: "public: bool __thiscall type_info::operator!=(class type_info const &)const " (??9type_info@@QBE_NABV0@@Z) 已在 LIBCMT.lib(typinfo.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _realloc 已在 LIBCMT.lib(realloc.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: ___iob_func 已在 LIBCMT.lib(_file.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: "public: bool __thiscall type_info::operator==(class type_info const &)const " (??8type_info@@QBE_NABV0@@Z) 已在 LIBCMT.lib(typinfo.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _memmove 已在 LIBCMT.lib(memmove.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _calloc 已在 LIBCMT.lib(calloc.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: __invalid_parameter_noinfo 已在 LIBCMT.lib(invarg.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _iswalpha 已在 LIBCMT.lib(_wctype.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _iswdigit 已在 LIBCMT.lib(_wctype.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _isspace 已在 LIBCMT.lib(_ctype.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _strchr 已在 LIBCMT.lib(strchr.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _tolower 已在 LIBCMT.lib(tolower.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: __strdup 已在 LIBCMT.lib(strdup.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _iswprint 已在 LIBCMT.lib(_wctype.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _iswalnum 已在 LIBCMT.lib(_wctype.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _abort 已在 LIBCMT.lib(abort.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _isalnum 已在 LIBCMT.lib(_ctype.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _isalpha 已在 LIBCMT.lib(_ctype.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _isdigit 已在 LIBCMT.lib(_ctype.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _strnlen 已在 LIBCMT.lib(strlen_s.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _iswspace 已在 LIBCMT.lib(_wctype.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: __errno 已在 LIBCMT.lib(dosmap.obj) 中定義過了
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _setlocale 已在 LIBCMT.lib(setlocal.obj) 中定義過了

相簿設定
標籤設定
相簿狀態