Hi Maya, Is this not a bug in WxWindows build? It doesn't seem to me appropriate to go add hacks into OSG examples to fix problems in 3rd party libs, rather the fix should be made to the 3rd party libs.
Thoughts? Robert. On Sat, Dec 26, 2009 at 11:42 PM, maya leonard <[email protected]> wrote: > Robert > Attached is a fix to build the debug version of osgviewerWX on Windows > Visual Studio 2008. (The entire file) > The release version is fine. The error message returned without the fix is: > > Error 1 error LNK2001: unresolved external symbol "protected: virtual class > wxString __thiscall wxAppTraitsBase::GetAssertStackTrace(void)" > (?getassertstacktr...@wxapptraitsbase@@MAE?AVwxString@@XZ) wxmsw28d_core.lib Examples > osgviewerWX > > > The fix is: > > #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 > > Thanks > Maya > > ________________________________ > Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now. > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
