Maybe you have a name clash with GTK. Try to #include gtk.h sooner in state_panel.h and try to include state_panel.h sooner in state_panel.c. By sooner I mean before other #include's and other definitions from your program. Hope this helps.
El 11/07/06 22:43, chao yeaj escribió: >Hello everyone > I meet a compile error as follow: > when I compile my source file :state_panel.c,I meet the error message > when remove the source file from my applicaion,no this message,why? > >[EMAIL PROTECTED] tsz]$ make >gcc -c -Wall -g `pkg-config --cflags gtk+-2.0` `pkg-config --libs >gtk+-2.0` state_panel.c >In file included from /usr/include/gtk-2.0/gdk/gdkcolor.h:30, > from /usr/include/gtk-2.0/gdk/gdkcairo.h:23, > from /usr/include/gtk-2.0/gdk/gdk.h:30, > from /usr/include/gtk-2.0/gtk/gtk.h:31, > from state_panel.h:7, > from state_panel.c:6: >/usr/include/cairo/cairo.h:55: error: expected ��=��, ��,��, ��;��, >��asm�� or ��__attribute__�� before ��int� >make: *** [state_panel.o] Error 1 > > >Any hints would be much appreciated,thanks in advance! >_______________________________________________ >gtk-app-devel-list mailing list >gtk-app-devel-list@gnome.org >http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > -- Ivan Baldo - [EMAIL PROTECTED] - http://ibaldo.codigolibre.net/ ICQ 10215364 - Phone/FAX (598) (2) 613 3223. Caldas 1781, Malvin, Montevideo, Uruguay, South America, planet Earth. In favour of world peace and freedom, against U.S.A. and allies!!! Alternatives: [EMAIL PROTECTED] - http://go.to/ibaldo _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list