Thread: how to install gtk?
hi using lucid lynx, , trying write basic code gtk, cant seem package install! how can install gtk can write programs in c using #include <gtk/gtk.h> ?
found it!
think gtk tutorials page discuss this, if path deferent on various systems or something! fount include file in:
/usr/include/gtk-2.0/gtk/gtk.h
code:#include <gtk-2.0/gtk/gtk.h> //ahso thats how in ubuntu! 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; }
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] how to install gtk?
Ubuntu
Comments
Post a Comment