Archív značiek: gui

gtkmm simple failure

Program hangs at Gtk::Main kit( argc, argv ); and in console you see only these messages:

GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use g_type_init() prior to this function


GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0′ failed

reason? simple! Call:

Glib::init();

on start of main. Doh!