Symbole externe non résolu "public: virtual void __thiscall wxAppConsole::OnAssert

Nusret Taşçı nusi at sofha.de
Thu Aug 3 07:18:14 PDT 2006


> I'm triyng to produce my first program with wswidget but I've got a linking 
> problem. with visual C++ 2005 Express
> my program work in release mode but in debug mode it tell me
> 
> LINK : warning LNK4098: conflit entre la bibliothèque par défaut 'MSVCRT' et 
> les autres bibliothèques ; utilisez /NODEFAULTLIB:library
> 
> minimal.obj : error LNK2001: symbole externe non résolu "public: virtual 
> void __thiscall wxAppConsole::OnAssert(char const *,int,char const *,char 
> const *)" (?OnAssert at wxAppConsole@@UAEXPBDH00 at Z)
> 
> minimal.obj : error LNK2019: symbole externe non résolu "void __cdecl 
> wxAssert(int,char const *,int,char const *,char const *)" 
> (?wxAssert@@YAXHPBDH00 at Z) référencé dans la fonction "public: __thiscall 
> wxStringBase::wxStringBase(class wxStringBase const &)" 
> (??0wxStringBase@@QAE at ABV0@@Z)
> 
> I found how to set the /NODEFAULTLIB flag but it's worst...
> If someone could help me (I found nothing on the net) !!!

I guess you're linking your debug mode executable to wxWidgets libraries 
which are build in release mode.
Either both should be build in release or both should be build in debug. 
Actually it's best to use the project files of the samples as base for 
your application. This helps avoiding misconfigurations.


Nusi





More information about the wx-users mailing list