Menu

#1 Example Linking error

open
nobody
5
2008-11-30
2008-11-30
No

I have wxWidgets(dll,release,unicode) the wxToolkit library(release) was created but the example gives Linking errors:

1>Linking...
1>main.obj : error LNK2001: unresolved external symbol "protected: static class wxAppConsole * wxAppConsole::ms_appInstance" (?ms_appInstance@wxAppConsole@@1PAV1@A)
1>main.obj : error LNK2001: unresolved external symbol "wchar_t const * const wxEmptyString" (?wxEmptyString@@3PB_WB)
1>main.obj : error LNK2001: unresolved external symbol "protected: static class wxAppConsole * (__cdecl* wxAppConsole::ms_appInitFn)(void)" (?ms_appInitFn@wxAppConsole@@1P6APAV1@XZA)
1>main.obj : error LNK2001: unresolved external symbol "class wxValidator const wxDefaultValidator" (?wxDefaultValidator@@3VwxValidator@@B)
1>main.obj : error LNK2001: unresolved external symbol "wchar_t const * const wxButtonNameStr" (?wxButtonNameStr@@3QB_WB)
1>main.obj : error LNK2001: unresolved external symbol "wchar_t const * const wxFrameNameStr" (?wxFrameNameStr@@3QB_WB)
1>main.obj : error LNK2001: unresolved external symbol "class wxPoint const wxDefaultPosition" (?wxDefaultPosition@@3VwxPoint@@B)
1>main.obj : error LNK2001: unresolved external symbol "class wxSize const wxDefaultSize" (?wxDefaultSize@@3VwxSize@@B)
1>main.obj : error LNK2001: unresolved external symbol "public: static unsigned int const wxStringBase::npos" (?npos@wxStringBase@@2IB)
1>main.obj : error LNK2001: unresolved external symbol "int const wxEVT_COMMAND_BUTTON_CLICKED" (?wxEVT_COMMAND_BUTTON_CLICKED@@3HB)
1>3DDC.obj : error LNK2001: unresolved external symbol "class wxBitmap wxNullBitmap" (?wxNullBitmap@@3VwxBitmap@@A)
1>3DDC.obj : error LNK2001: unresolved external symbol "class wxColour wxNullColour" (?wxNullColour@@3VwxColour@@A)
1>3DModel.obj : error LNK2001: unresolved external symbol "class wxMBConv & wxConvLibc" (?wxConvLibc@@3AAVwxMBConv@@A)
1>3DWindow.obj : error LNK2001: unresolved external symbol "int const wxEVT_LEFT_DCLICK" (?wxEVT_LEFT_DCLICK@@3HB)
1>3DWindow.obj : error LNK2001: unresolved external symbol "class wxPalette wxNullPalette" (?wxNullPalette@@3VwxPalette@@A)
1>3DWindow.obj : error LNK2001: unresolved external symbol "int const wxEVT_PAINT" (?wxEVT_PAINT@@3HB)
1>MSVCRT.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
1>D:\Programmierung\WXWidgets 2.8.9\wxToolkit\Release\wxToolkitExample.exe : fatal error LNK1120: 17 unresolved externals

The glut32.lib and glut.h I had downloaded from http://www.xmission.com/~nate/glut.html.
Thanks for helping

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.