There was an issue in the program. Corrected program as follows:
#include <gtkmm.h>
int main (int argc, char* argv[]){
Gtk::Main kit(argc, argv);
Gtk:: Window window;
Gtk::Main::run(window);
return 0;
}
Also compile with following command as per Knud's post
g++ `pkg-config --cflags --libs gtkmm-2.4` Main.cpp -o main
Received following errors:
/tmp/ccNHlRb6.o: In function `main':
Main.cpp
.text+0x28): undefined reference to `Gtk::Main::Main(int&, char**&, bool)'
Main.cpp
.text+0x3c): undefined reference to `Gtk::Window::Window(Gtk::WindowType)'
Main.cpp
.text+0x48): undefined reference to `Gtk::Main::run(Gtk::Window&)'
/tmp/ccNHlRb6.o: In function `__static_initialization_and_destruction_0(int, int)':
Main.cpp
.text+0xc5): undefined reference to `Glib::ustring::ustring(char const*)'
collect2: ld returned 1 exit status