PDA

View Full Version : [SOLVED] Gtk C++ Headers



scott-ian
June 4th, 2011, 05:51 PM
What package contains the C++ headers for Gtk?

simeon87
June 4th, 2011, 05:52 PM
libgtkmm-2.4-dev.

scott-ian
June 4th, 2011, 06:04 PM
I have libgtkmm-2.4-dev installed, but I still get this error:
main.cxx:24:21: fatal error: gtk/gtk.h: No such file or directory

ThatCoolGuy220
June 4th, 2011, 06:27 PM
you should copy them into the include folder...

well at least worked for me for the "Cygwin" one

Also are you using an IDE?

scott-ian
June 4th, 2011, 06:27 PM
Problem solved. I built with this command:
g++ `pkg-config --cflags --libs gtk+-2.0` -Wall -c "%f"

simeon87
June 4th, 2011, 06:29 PM
Did you add it to gcc's arguments? See this thread (http://ubuntuforums.org/showthread.php?t=637895).