Hello everyone,
I had what seemed like a strange issue with gcc not being able to find the gtk libraries, but solved it. I thought I would share what I found.
I had gtk.h installed at /usr/include/gtk-3.0/gtk/. I definitely had dev version.
In my program i had:
#include <gtk-3.0/gtk/gtk.h>
In my build settings in Geany I included -lgdk-3.0.
When I tried to compile or build I get the following error:
/usr/include/gtk-3.0/gtk/gtk.h:30:21: fatal error: gdk/gdk.h: No such file or directory
I had a folder called gdk inside the gtk-3.0 folder and it contains gdk.h, but the gtk.h was using:
#include <gdk/gdk.h>
It seemed that having the gtk-3.0 folder in the path was what the problem was. I moved both the gtk and gdk folder into the /usr/include/ folder directly, and now its happy. (I also removed gtk-3.0 from the #include line) I suppose I could also re-write all the headers to include the gtk-3.0 folder in the path, but this seemed to work for now.
Maybe there is a better way to set this up. Any further recommendations out there?