Linking errors while compiling minimal example

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
qanplazas
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Jun 18, 2012 8:47 am

Linking errors while compiling minimal example

Post by qanplazas » Mon Jun 18, 2012 8:57 am

Hi,

I'm using vc++ 2010 express and wxWidgets 2.9.3. while compiling minimal example project I've got the following errors. Could you tell me what exactly library is missing?
The errors:

Code: Select all

1>minimal.obj : error LNK2001: unresolved external symbol "class wxMBConv * wxConvLibcPtr" ([email protected]@[email protected]@A)
1>minimal.obj : error LNK2001: unresolved external symbol "int const wxEVT_NULL" ([email protected]@3HB)
1>minimal.obj : error LNK2001: unresolved external symbol "char const * const wxStatusLineNameStr" ([email protected]@3QBDB)
1>minimal.obj : error LNK2001: unresolved external symbol "protected: static struct wxEventTable const wxFrame::sm_eventTable" ([email protected]@@[email protected]@B)
1>minimal.obj : error LNK2001: unresolved external symbol "class wxEventTypeTag<class wxCommandEvent> const wxEVT_COMMAND_MENU_SELECTED" ([email protected]@[email protected]@@@@B)
1>minimal.obj : error LNK2001: unresolved external symbol "bool const wxFalse" ([email protected]@3_NB)
1>minimal.obj : error LNK2001: unresolved external symbol "void (__cdecl* wxTheAssertHandler)(class wxString const &,int,class wxString const &,class wxString const &,class wxString const &)" ([email protected]@[email protected]@[email protected])
1>minimal.obj : error LNK2001: unresolved external symbol "protected: static class wxAppConsole * wxAppConsoleBase::ms_appInstance" ([email protected]@@[email protected]@A)
1>minimal.obj : error LNK2001: unresolved external symbol "char const * const wxFrameNameStr" ([email protected]@3QBDB)
1>minimal.obj : error LNK2001: unresolved external symbol "class wxPoint const wxDefaultPosition" ([email protected]@[email protected]@B)
1>minimal.obj : error LNK2001: unresolved external symbol "public: static unsigned int const wxString::npos" ([email protected]@@2IB)
1>minimal.obj : error LNK2001: unresolved external symbol "class wxSize const wxDefaultSize" ([email protected]@[email protected]@B)
1>minimal.obj : error LNK2001: unresolved external symbol "protected: static class wxAppConsole * (__cdecl* wxAppConsoleBase::ms_appInitFn)(void)" ([email protected]@@[email protected]@XZA)
1>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
Any suggestions workarounds?

User avatar
bishop.gis
Earned a small fee
Earned a small fee
Posts: 20
Joined: Fri May 25, 2012 6:47 pm

Re: Linking errors while compiling minimal example

Post by bishop.gis » Mon Jun 18, 2012 10:29 am

I think you need to link wxbase29u_vc_custom.lib and wxmsw29u_core_vc_custom.lib or something the same.

qanplazas
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Jun 18, 2012 8:47 am

Re: Linking errors while compiling minimal example

Post by qanplazas » Mon Jun 18, 2012 11:18 am

there's only dll with name like this. Anyway, I've tried this, but the IDE says that it is corrupted.

Post Reply