Skip to main content

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

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?