wxWidgets的debug模式的一個鏈接異常

To use it, add the following include path:
D:/apps/wxWidgets-2.8.4/include/msvc
D:/apps/wxWidgets-2.8.4/include
add the following library path:
D:/apps/wxWidgets-2.8.4/lib/vc_lib

 

wxmsw28d_core.lib(appcmn.obj) : error LNK2001: unresolved external symbol "protected: virtual class wxString __thiscall wxAppTraitsBase::GetAssertStackTrace(void)" (?GetAssertStackTrace@wxAppTraitsBase@@MAE?AVwxString@@XZ)
Google does not help me on this. So I overcome it in this way:
in one cpp file
#include <wx/apptrait.h>
#if wxUSE_STACKWALKER && defined( __WXDEBUG__ )
// silly workaround for the link error with debug configuration:
// /src/common/appbase.cpp
wxString wxAppTraitsBase::GetAssertStackTrace()
{
   return wxT("");
}
#endif

發佈了67 篇原創文章 · 獲贊 3 · 訪問量 16萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章