hi all
I'm currently making a C++/GTK+ application, where I want to use the GtkSourceView. I installed the libgtksourceview2.0-dev installed, and in some examples and in the gedit source code I've seen that you include it with #include <gtksourceview/gtksourceview.h>, but when I do that it tells me that it can't find it.
I looked into usr/include, and noticed that the gtksourceview folder is inside a "gtksourceview-2.0" folder, but when I include #include <gtksourceview-2.0/gtksourceview/gtksourceview.h>, it gives errors from the included file that it can't find a file that's in the gtksourceview folder.
Then I tried to copy the gtksourceview folder to usr/include, and now it can include, but when I tries to call a function, it gived me a "undefined reference to gtk_source_view_new()" error, but I know that it can see the functions, because when I call it with other arguments, it's telling me that the arguments of gtk_source_view_new() is wrong.
What am I doing wrong? And how do I install and use gtksourceview?
Bookmarks