Building wxWidgets 2.8.6 linker error with VS2005

schwolop at gmail.com schwolop at gmail.com
Mon Nov 12 16:29:48 PST 2007


On Nov 7, 3:04 am, matatu.konok... at gmail.com (konokono) wrote:
> Hi all,
> I'm trying to build wxWidgets 2.8.6 with VS2005, but I get the following
> errors compiling the 'core' project:
>
> 1>Linking...
> 1>   Creating library ..\..\lib\vc_dll\wxmsw28d_core.lib and object
> ..\..\lib\vc_dll\wxmsw28d_core.exp
> 1>app.obj : error LNK2019: unresolved external symbol "protected:
> virtual class wxString __thiscall
> wxAppTraitsBase::GetAssertStackTrace(void)"
> (?GetAssertStackTrace at wxAppTraitsBase@@MAE?AVwxString@@XZ) referenced in
> function "public: virtual bool __thiscall wxApp::Yield(bool)"
> (?Yield at wxApp@@UAE_N_N at Z)
> 1>appcmn.obj : error LNK2001: unresolved external symbol "protected:
> virtual class wxString __thiscall
> wxAppTraitsBase::GetAssertStackTrace(void)"
> (?GetAssertStackTrace at wxAppTraitsBase@@MAE?AVwxString@@XZ)
> 1>msgout.obj : error LNK2001: unresolved external symbol "protected:
> virtual class wxString __thiscall
> wxAppTraitsBase::GetAssertStackTrace(void)"
> (?GetAssertStackTrace at wxAppTraitsBase@@MAE?AVwxString@@XZ)
> 1>rendcmn.obj : error LNK2001: unresolved external symbol "protected:
> virtual class wxString __thiscall
> wxAppTraitsBase::GetAssertStackTrace(void)"
> (?GetAssertStackTrace at wxAppTraitsBase@@MAE?AVwxString@@XZ)
> 1>utilscmn.obj : error LNK2001: unresolved external symbol "protected:
> virtual class wxString __thiscall
> wxAppTraitsBase::GetAssertStackTrace(void)"
> (?GetAssertStackTrace at wxAppTraitsBase@@MAE?AVwxString@@XZ)
> 1>..\..\lib\vc_dll\wxmsw28d_core_vc_custom.dll : fatal error LNK1120: 1
> unresolved externals
>
> I've tried to include appbase.cpp (where
> wxAppTraitsBase::GetAssertStackTrace is defined), but I get other
> errors. Does anyone know where is the problem?
>
> Thanks in advance,
> Paolo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscr... at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-h... at lists.wxwidgets.org

Hi Paolo,
I get a similar problem, but not when compiling the wxWidgets library
itself, only when linking to it in my projects. Given that the problem
is with calls to wxAssert, etc, which is only compiled in debug
configuration, you'll probably find that you can build the release
version sucessfully. Chances are you won't ever need to actually debug
inside the wxWidgets library, so this may well be an acceptable
workaround.

To solve my problem, I can use the workaround suggested at
http://onegazhang.spaces.live.com/Blog/cns!D5E642BC862BA286!480.entry
so you might want to see if this helps you.

Cheers,
Tom







More information about the wx-users mailing list