I'm just starting to work with Visual Studio Community 2015 and wxWidgets (Windows 7).
First I downloaded and extracted:
1. wxWidgets-3.1.0-headers
2. wxMSW-3.1.0_vc140_Dev
My folder is MY_DRIVE:\MY_PATH\wxWidgets-3.1.0.
I copied the content of wxWidgets-3.1.0-headers to the above folder:
MY_DRIVE:\MY_PATH\wxWidgets-3.1.0\include.
Ditto with content wxMSW-3.1.0_vc140_Dev BUT due to some error messages I renamed the original subfolder \lib\vc140_dll to \lib\vc_lib (is that mentioned somewhere?!):
MY_DRIVE:\MY_PATH\wxWidgets-3.1.0\lib.
The name of my project is Test1a. Then I added the following pathes to the project properties (Debug -> Test1a Properties):
Code: Select all
VC++ Directories
Include Directories
MY_DRIVE:\MY_PATH\wxWidgets-3.1.0\include\msvc
MY_DRIVE:\MY_PATH\wxWidgets-3.1.0\include
Library Directories
MY_DRIVE:\MY_PATH\wxWidgets-3.1.0\lib\vc_lib
Additionally I tried:
MY_DRIVE:\MY_PATH\wxWidgets-3.1.0\lib\vc_lib\mswud\wx
Code: Select all
#include <wx/wx.h>
class wxStart__Test : public wxApp
{
public:
bool OnInit()
{
wxFrame* window = new wxFrame(NULL, -1, "Hello World!");
window->Show();
return true;
}
};
IMPLEMENT_APP(wxStart__Test);
Code: Select all
Error LNK1120 7 unresolved externals
Error LNK2001 unresolved external symbol
"char const * const wxFrameNameStr" (...)
"class wxMBConv * wxConvLibcPtr" (...)
"class wxPoint const wxDefaultPosition" (...)
"class wxSize const wxDefaultSize" (...)
"protected: static class wxAppConsole * (__cdecl* wxAppConsoleBase::ms_appInitFn)
(void)" (...)
"protected: static class wxAppConsole * wxAppConsoleBase::ms_appInstance" (...)
"public: static unsigned int const wxString::npos" (...)
As second try I compiled the sources. Same error messages.
Two additional questions:
- Just using the DLLs - what must I do?
- Wouldn't it be easier for a beginner to use monolithic builds? So corresponding configurations would be highly appreciated!
Many thanks and greetings
widgetsfox