I found the section on libglademm not comprehensive enough. After
digging through the net, here is a contribution i have to the book
"Programming with libglademm" at

Here is a sample program written with libgademm:

#include <gtkmm.h>
#include <libglademm.h>

int main(int argc, char *argv[])
    Gtk::Main kit (argc, argv);
    Glib::RefPtr<Gnome::Glade::Xml> refXml =
Gnome::Glade::Xml::create(""); ();

 return 0;

Compile it with 

g++ -o gnumu `pkg-config gtkmm-2.4 libglademm-2.4 --cflags

I hope that this sample program will make the section on libglademm
clearer. thanks!

Wei Jie

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]