The minimal source code for Gtk c++ application is listed below.
[codesyntax lang=”cpp”]
//============================================================================ // Name : gla01.cpp // Author : Mr. Arch Brooks // Version : 0.0 // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include <iostream> #include <gtkmm.h> using namespace std; int main(int argc, char *argv[]) { Gtk::Main kit(argc, argv); Gtk::Window window; Gtk::Main::run(window); return 0; }
[/codesyntax]
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.