why error?



Dear Sir:
     I am a new user of gtk,I writed the following code yesterday 
  
#include <gtk/gtk+>
int main(int argc,char *grgv[])
{
   GtkWidget *window;
   gtk_init(&argc,&argv);
   window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
   gtk_widget_show(window);
   gtk_main();
   return 0;
}

    But when I compiled this code the following error message appears
   
   gtk_init() undefined.....
   gtk_widget_show() undefined..... 
   gtk_main() undefined......

   I did include the head file gtk.h in ,Can you Please tell me why these
happend 
and how can I do.....
                                                          yours pekky.nice 
                                                          tianjin university
                                                           P.R.CHINA





--http://www.eyou.com
--Îȶ¨¿É¿¿µÄÃâ·Ñµç×ÓÐÅÏä  ÓïÒôÓʼþ  Òƶ¯ÊéÇ©  ÈÕÀú·þÎñ...ÒÚÓÊδ¾¡






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