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
本文介绍了如何解决在使用wxWidgets库时遇到的未解析外部符号错误。通过在源代码中手动实现缺失的函数来规避此问题,确保了项目的顺利编译。
761

被折叠的 条评论
为什么被折叠?



