Re: Gtk headers problem



On Tue, 2006-04-04 at 16:42 +0200, 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 : 

gtk-config is only for GTK-1.2.

> 
> 44-1.c:64: error: `GtkTextView' undeclared (first use in this

GTK+-1.2 did not include GtkTextView.

>  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 `pkg-config gtk+-2.0 --cflags --libs`

Michael



> 
> ----------------------------------------------------------------------
> Pan pozna Pania. Czeka... ;-) >>> http://link.interia.pl/f1922
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 




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