From: konokono on 6 Nov 2007 11:04 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(a)wxAppTraitsBase@@MAE?AVwxString@@XZ) referenced in function "public: virtual bool __thiscall wxApp::Yield(bool)" (?Yield(a)wxApp@@UAE_N_N@Z) 1>appcmn.obj : error LNK2001: unresolved external symbol "protected: virtual class wxString __thiscall wxAppTraitsBase::GetAssertStackTrace(void)" (?GetAssertStackTrace(a)wxAppTraitsBase@@MAE?AVwxString@@XZ) 1>msgout.obj : error LNK2001: unresolved external symbol "protected: virtual class wxString __thiscall wxAppTraitsBase::GetAssertStackTrace(void)" (?GetAssertStackTrace(a)wxAppTraitsBase@@MAE?AVwxString@@XZ) 1>rendcmn.obj : error LNK2001: unresolved external symbol "protected: virtual class wxString __thiscall wxAppTraitsBase::GetAssertStackTrace(void)" (?GetAssertStackTrace(a)wxAppTraitsBase@@MAE?AVwxString@@XZ) 1>utilscmn.obj : error LNK2001: unresolved external symbol "protected: virtual class wxString __thiscall wxAppTraitsBase::GetAssertStackTrace(void)" (?GetAssertStackTrace(a)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-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: schwolop on 12 Nov 2007 19:29 On Nov 7, 3:04 am, matatu.konok...(a)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(a)wxAppTraitsBase@@MAE?AVwxString@@XZ) referenced in > function "public: virtual bool __thiscall wxApp::Yield(bool)" > (?Yield(a)wxApp@@UAE_N_N@Z) > 1>appcmn.obj : error LNK2001: unresolved external symbol "protected: > virtual class wxString __thiscall > wxAppTraitsBase::GetAssertStackTrace(void)" > (?GetAssertStackTrace(a)wxAppTraitsBase@@MAE?AVwxString@@XZ) > 1>msgout.obj : error LNK2001: unresolved external symbol "protected: > virtual class wxString __thiscall > wxAppTraitsBase::GetAssertStackTrace(void)" > (?GetAssertStackTrace(a)wxAppTraitsBase@@MAE?AVwxString@@XZ) > 1>rendcmn.obj : error LNK2001: unresolved external symbol "protected: > virtual class wxString __thiscall > wxAppTraitsBase::GetAssertStackTrace(void)" > (?GetAssertStackTrace(a)wxAppTraitsBase@@MAE?AVwxString@@XZ) > 1>utilscmn.obj : error LNK2001: unresolved external symbol "protected: > virtual class wxString __thiscall > wxAppTraitsBase::GetAssertStackTrace(void)" > (?GetAssertStackTrace(a)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...(a)lists.wxwidgets.org > For additional commands, e-mail: wx-users-h...(a)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
From: untergasser on 21 Nov 2007 11:31 Hi, I get exactly the same probem. > > 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. > > This is absolutely wrong. It just hides the problem and you still link > with the wrong version of the library. You *will* get mysterious other > problems later on. So how can I solve the problem properly?? And were does it come from? Regards, Andreas > On Nov 13, 1:46 am, va...(a)wxwidgets.org (Vadim Zeitlin) wrote: > On Tue, 13 Nov 2007 00:29:48 -0000 schwo...(a)gmail.com wrote: > > > 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. > > You need debug build of wx not in order to debug wx itself, but to get > assert messages when you use wx API incorrectly. Chances are that using > debug version of wx will save you hours of time spent tracking down the > problems in your code otherwise. > > > 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. > > This is absolutely wrong. It just hides the problem and you still link > with the wrong version of the library. You *will* get mysterious other > problems later on. > > Regards, > VZ > > -- > TT-Solutions: wxWidgets consultancy and technical support > http://www.tt-solutions.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: wx-users-unsubscr...(a)lists.wxwidgets.org > For additional commands, e-mail: wx-users-h...(a)lists.wxwidgets.org
From: untergasser on 21 Nov 2007 12:43 Thanks for the fast reply. I have a brand-new visual cpp express, a fresh of the installer wxwidgets 2.8.6 and ordered the batch install as recomendet. I didnt move or edit anything and I have no other wx installed. I thought the wxDevC++ made the problems and deinstalled it, but still I get this error messages (several, but this is a very typical one which makes the others redundant): Creating library ..\..\lib\vc_dll\wxmsw28ud_core.lib and object ..\.. \lib\vc_dll\wxmsw28ud_core.exp app.obj : error LNK2019: unresolved external symbol "protected: virtual class wxString __thiscall wxAppTraitsBase::GetAssertStackTrace(void)" (? GetAssertStackTrace(a)wxAppTraitsBase@@MAE?AVwxString@@XZ) referenced in function "public: virtual bool __thiscall wxApp::Yield(bool)" (? Yield(a)wxApp@@UAE_N_N@Z) appcmn.obj : error LNK2001: unresolved external symbol "protected: virtual class wxString __thiscall wxAppTraitsBase::GetAssertStackTrace(void)" (? GetAssertStackTrace(a)wxAppTraitsBase@@MAE?AVwxString@@XZ) msgout.obj : error LNK2001: unresolved external symbol "protected: virtual class wxString __thiscall wxAppTraitsBase::GetAssertStackTrace(void)" (? GetAssertStackTrace(a)wxAppTraitsBase@@MAE?AVwxString@@XZ) rendcmn.obj : error LNK2001: unresolved external symbol "protected: virtual class wxString __thiscall wxAppTraitsBase::GetAssertStackTrace(void)" (? GetAssertStackTrace(a)wxAppTraitsBase@@MAE?AVwxString@@XZ) utilscmn.obj : error LNK2001: unresolved external symbol "protected: virtual class wxString __thiscall wxAppTraitsBase::GetAssertStackTrace(void)" (? GetAssertStackTrace(a)wxAppTraitsBase@@MAE?AVwxString@@XZ) ...\..\lib\vc_dll\wxmsw28ud_core_vc_custom.dll : fatal error LNK1120: 1 unresolved externals Regards, Andreas On Nov 21, 5:38 pm, va...(a)wxwidgets.org (Vadim Zeitlin) wrote: > On Wed, 21 Nov 2007 08:31:52 -0800 (PST) untergas...(a)gmail.com wrote: > > > So how can I solve the problem properly?? And were does it come from? > > It comes from mismatch between the headers used to compile your > application and the libraries used to link it. So to solve it you must > ensure that you use the same headers that were used for the library > compilation for the application build as well. > > As the problem usually arises because of local changes (such as editing or > moving setup.h), I can't be more precise because I don't know what exactly > happened on your machine. But I'm quite sure that if you do a clean rebuild > of everything (and if you have no other/older wx versions on your machine) > everything will build *and* work correctly. > > Regards, > VZ > > -- > TT-Solutions: wxWidgets consultancy and technical support > http://www.tt-solutions.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: wx-users-unsubscr...(a)lists.wxwidgets.org > For additional commands, e-mail: wx-users-h...(a)lists.wxwidgets.org
From: untergasser on 22 Nov 2007 13:26
> This function is supposed to be defined in appbase.cpp, can you please > check (using dumpbin) whether it's really there? yes, the function is there. I tried to compile the grid sample and I get the same error. Thanks again for the help, I am trying by myself already for a week... Best, Andreas |