Originally Posted by undeadgangster
I've been trying to compile some simple gtkmm code on debian squeeze but every time I compile I get the error message #error "Only <glib.h> can be included directly." can someone offer some assistance
the code I'm trying to compile:
Int main(int argc, char *argv)
Gtk::Main kit(argc, argv);
Well, "Int" and "Return" will never compile, they both have to be lower case. After fixing those, your code compiles under gtkmm 2.4 and 3.0. That error is usually seen when trying to include something like "glib/foobar.h", and should definitely not be caused by the above code. Are you sure that's the exact code that's failing?