Re: Gtk headers problem



hm wrote:
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 ? ???


Use 'gcc -o prog.x prog.c `pkg-config gtk+-2.0 --libs --cflags`
--
------------------------------------------------------------------------
Mark Leisher
Computing Research Lab              They never open their mouths
New Mexico State University         without subtracting from the
Box 30001, MSC 3CRL                 sum of human knowledge.
Las Cruces, NM  88003                 -- Thomas Bracket Reed (1839-1902)



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