// Compile: g++ hwapp.cpp `wx-config --libs` `wx-config --cxxflags` -o hwapp #include "wx/wx.h" class HWFrame: public wxFrame { public: HWFrame() : wxFrame(NULL, wxID_ANY, "First wxWidgets Application") { label = new wxStaticText(this, wxID_STATIC, "Hello World"); } virtual ~HWFrame() { delete label; } private: wxStaticText * label; }; class HWApp: public wxApp { virtual bool OnInit() { HWFrame * myFrame = new HWFrame(); myFrame->Show(); return true; } }; IMPLEMENT_APP(HWApp);