You are not logged in.
I am having trouble including gtkmm in my C++ application. When I simply try
#include <gtkmm.h>
without changing any compiler options, I get errors about g++ not finding some gtkmm/glibmm header files (first of which is gtkmm.h, of course). Thus I apparently need to add their directories to my include path explicitely on the command line or in the Makefile, starting with: -I=gtkmm-2.4/ -I=glibmm-2.4/ -I/usr/lib/glibmm-2.4/include/ -I=glib-2.0 . . . and so on.
This cannot be the right way to do that, can it? Is there something wrong with my global compiler options? Am i missing symlinks in /usr/include/? Are the header files misplaced (which would be the packages' fault)?
Last edited by Franek (2010-07-25 10:41:26)
Offline
gcc $(pkg-config --cflags --libs gtkmm-2.4) ...
Offline
Thanks for pointing me to pkg-config!
However this does not completely resolve my issue, pkg-config still does not provide the include path to glibmmconfig.h (which is /usr/lib/glibmm-2.4/include/glibmmconfig.h).
Offline
Sure it does...
>pkg-config --cflags --libs gtkmm-2.4
... -I/usr/lib/glibmm-2.4/include ...
Offline
Right, sorry. There must be something wrong with my Makefile, as manual compilation does not give an error.
Offline