1.synaptic
libwxgtk3.0-0v5; libwxgtk3.0-dev; libwxgtk3.0-gtk3-vo5; libwxgtk3.0-gtk3-dev
2. vi aa.cpp as follows:
#include <wx/wx.h> class Simple : public wxFrame { public: Simple(const wxString& title) : wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(250, 150)) { Centre(); } }; class MyApp : public wxApp { public: bool OnInit() { Simple *simple = new Simple(wxT("Simple")); simple->Show(true); return true; } }; wxIMPLEMENT_APP(MyApp);
3. g++ aa.cpp `wx-config --cxxflags --libs std` -o program
4. ./program
ok!