Strange compile error : /usr/include/cairo/cairo.h:55: error: expected ‘=’, ‘,’, ‘; ’, ‘asm’ or ‘__attribute__’ before ‘int’



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?

[yeaj yechao 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!


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