Gtk headers problem



Hi !

I am working on an application which is using gtk. I want to use GtkTextView/GtkTextBuffer Widget. When I`m trying to compile my program using : gcc -o prog.x prog.c `gtk-config --libs --cflags`, I receive message : 

44-1.c:64: error: `GtkTextView' undeclared (first use in this function), and exactly the same bout GtkTextBuffer. So I`ve checked, that i have two versions of gtk installed : gtk-2.0 and gtk-1.2. 
I`m including gtk/gtk.h headers ( I`ve got `em in /usr/include/gtk-2.0/gtk/gtk.h  and /usr/include/gtk-1.2/gtk/gtk.h ). How to force using gtk-2.0 instead of 1.2 ? ???

----------------------------------------------------------------------
Pan pozna Pania. Czeka... ;-) >>> http://link.interia.pl/f1922




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]