====== Hello World ====== Ein einfaches Hello World Programm mit wxWidgets. #include "wx/wx.h" class MyApp : public wxApp { public: virtual bool OnInit() { wxMessageBox(_("Hello wxWidgets ;-)")); return true; } }; IMPLEMENT_APP(MyApp); ===== Zum Kompilieren: ====== Automatisch Flags für den Kompiler erhalten: `wx-config --cxxflags` Automatisch Flags für den Linker erhalten: ==== Ohne OpenGL (wxGLCanvas/wxGLContext) ==== `wx-config --libs` ==== Mit OpenGL (wxGLCanvas/wxGLContext) ==== `wx-config --libs` `wx-config --gl-libs`