Hi,
I'm excited to use wxWidgets but I have found that there is no help for a user like me who has MinGW installed and wants to try the Hello World example (hworld.cpp) shown as a mini tutorial.
"Under Unix (including Linux and OS X and nearly any system that uses GCC), you can use the following statement to compile the program:
g++ hworld.cpp `wx-config --libs` `wx-config --cxxflags` -o hworld"
That's great for Linux, but what about Windows users? wx-config.exe isn't found anywhere in the installation .exe file, nor are the backtick operators supported in Windows for obvious reasons. There isn't even a single hint as to where to proceed. And I'm getting the same errors trying my own ideas which are likely bound to fail as others have.
My last simple attempt was: g++ -Iwx/include hworld.cpp
The "tail" of the errors:
hworld.cpp: In constructor 'MyFrame::MyFrame(const wxString&, const wxPoint&, co
nst wxSize&)':
hworld.cpp:49: error: invalid use of incomplete type 'struct wxMenu'
wx/include/wx/event.h:44: error: forward declaration of 'struct wxMenu'
hworld.cpp:51: error: invalid use of incomplete type 'struct wxMenu'
wx/include/wx/event.h:44: error: forward declaration of 'struct wxMenu'
hworld.cpp:52: error: invalid use of incomplete type 'struct wxMenu'
wx/include/wx/event.h:44: error: forward declaration of 'struct wxMenu'
hworld.cpp:53: error: invalid use of incomplete type 'struct wxMenu'
wx/include/wx/event.h:44: error: forward declaration of 'struct wxMenu'
hworld.cpp:55: error: invalid use of incomplete type 'struct wxMenuBar'
wx/include/wx/frame.h:27: error: forward declaration of 'struct wxMenuBar'
hworld.cpp:56: error: invalid use of incomplete type 'struct wxMenuBar'
wx/include/wx/frame.h:27: error: forward declaration of 'struct wxMenuBar'
hworld.cpp:58: error: 'SetMenuBar' was not declared in this scope
hworld.cpp:60: error: 'CreateStatusBar' was not declared in this scope
hworld.cpp:61: error: 'SetStatusText' was not declared in this scope
hworld.cpp: In member function 'void MyFrame::OnAbout(wxCommandEvent&)':
hworld.cpp:73: error: 'wxMessageBox' was not declared in this scope
It is likely I am missing dozens of other compiler options. Does anyone think this might be a worthy addition to the Mini Tutorial?
Thank you for considering.