PDA

View Full Version : [SOLVED] fatal error: gtk/gtk.h: No such file or directory



lokesh_chakka
March 24th, 2015, 11:50 AM
i was trying to do gtk programming

i need gtk.h file

I tried to do

apt-get install libgtk-3-0

it failed


apt-get install gtk+3.0

apt-get is success
but gtk lib was not installed




I am still seeing the following error:

fatal error: gtk/gtk.h: No such file or directory

I am using Ubuntu 14.10. can Some one please help me in fixing the issue ?

Impavidus
March 24th, 2015, 12:24 PM
You need the development version of the package to get the header files. On my system that's libgtk-3-dev, but I'm running 14.04. On your system it might be libgkt+3.0-dev. The package you tried installing contains the library without the headers, which is good enough for running gtk applications, but not for compiling them.