- 论坛徽章:
- 0
|
我的gtk+在编译文件(例如a.c)时出现很多问题,下面选贴几条.
# gcc -I/usr/include/gtk-1.2 a.c
..........
/usr/include/gtk-1.2/gtk/gtklist.h:71: error: syntax error before "selection_mode"
/usr/include/gtk-1.2/gtk/gtklist.h:78: error: field `parent_class' has incomplete type
/usr/include/gtk-1.2/gtk/gtklist.h:88: error: syntax error before "gtk_list_get_type"
/usr/include/gtk-1.2/gtk/gtklist.h:88: warning: data definition has no type or storage class
/usr/include/gtk-1.2/gtk/gtklist.h:91: error: syntax error before "GList"
/usr/include/gtk-1.2/gtk/gtklist.h:94: error: syntax error before "GList"
/usr/include/gtk-1.2/gtk/gtklist.h:96: error: syntax error before "GList"
/usr/include/gtk-1.2/gtk/gtklist.h:98: error: syntax error before "GList"
..........
是不是还有哪个地方没设置好.另外我还装了gtk-2.0就在1.2文件夹的旁边,使用:
# gcc -I/usr/include/gtk-2.0 a.c
也会出同样的问题.
本人刚使用,向各位请教.谢谢! |
|