Re: Hello world not show



Do you see any error messages on the console where you run your program? What OS are you using? What version of GTK+ are you using?


On Wed, Jun 4, 2014 at 9:21 AM, Zhengrong Zang <zhengrong zang gmail com> wrote:
I compiled code as below and without any problems, but nothing shown when run it, what should I do next?
/* example-start base base.c */ 
#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);
} 
/* example-end */

_______________________________________________
gtk-list mailing list
gtk-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-list




--
  Jasper


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