wxWidgets的debug模式的一个链接异常

来源:互联网 发布:java运维框架 编辑:程序博客网 时间:2024/06/01 11:59

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