I have just started to learn GUI programing . .
I am through this tutorial
http://library.gnome.org/devel/gtk-t...table/c39.html
in this page i cant compile the first program itself
the program is
this is what i get as resultCode:#include <gtk/gtk.h> int main( int argc, char *argv[] ) { GtkWidget *window; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show (window); gtk_main (); return 0; }
i dont know what hearder is missing or what path is mising . .Code:raj@raj-desktop:~$ cd /home/raj/Documents/PROJECT/gtk raj@raj-desktop:~/Documents/PROJECT/gtk$ gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0` Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found base.c:1:21: error: gtk/gtk.h: No such file or directory base.c: In function ‘main’: base.c:5: error: ‘GtkWidget’ undeclared (first use in this function) base.c:5: error: (Each undeclared identifier is reported only once base.c:5: error: for each function it appears in.) base.c:5: error: ‘window’ undeclared (first use in this function) base.c:9: error: ‘GTK_WINDOW_TOPLEVEL’ undeclared (first use in this function) raj@raj-desktop:~/Documents/PROJECT/gtk$
Could any one help me in this,. .



Adv Reply


Bookmarks