semantic-decoration-include-visit (opens the included header):
#include <string.h> #include "/usr/include/gtk-3.0/gtk/gtk.h"
This does not:
But if I run it on a relative gtk path:
Then I get an error:
semantic-decoration-include-visit: Could not location include gtk/gtk.h
Add include manually:
My own .h file:
If I create a 'hello.h' inside /usr/include, and add the following to some C file, then semantic include visit works on that also:
sudo ln -s gtk-3.0/gtk gtk
This actually gets the desired result. (but this has issues as I do Gtk2/Gtk3 development and I'd have to re-link many many many times...
My question being, why doesn't
(semantic-add-system-include "/usr/include/gtk-3.0/gtk") make it so that is properly located?
- I'm an intern, learning about C development. I might be missing something obvious.
- I'm setting up Emacs for C-Development as per this guide
- I'm on Emacs 126.96.36.199, using build-in CEDET (although tried with latest CEDET, had same error) - I compile the gtk using pkg-config which appends some flags:
gcc `pkg-config --cflags gtk+-3.0` -o main main.c `pkg-config --libs gtk+-3.0`
As per comment below, It turns out this is wrong:
This is Correct (minus 'gtk' at end), to match the pattern: