|
|
编第一个gtk程序
#include <gtk/gtk.h>
但是我用的是debian,目录/usr/include/gtk-2.0/gtk/gtk.h,所以我这样编译
gcc -I/usr/include/gtk-2.0 test.c
结果如下的出错信息
/usr/include/gtk-2.0/gtk/gtkuimanager.h:50: error: syntax error before "typedef"/usr/include/gtk-2.0/gtk/gtkuimanager.h:56: error: parse error before "GObject"
/usr/include/gtk-2.0/gtk/gtkuimanager.h:56: warning: no semicolon at end of struct or union
/usr/include/gtk-2.0/gtk/gtkuimanager.h:60: error: conflicting types for `private_data'
/usr/include/gtk-2.0/gtk/gtkcalendar.h:89: error: previous declaration of `private_data'
/usr/include/gtk-2.0/gtk/gtkuimanager.h:61: error: parse error before '}' token
/usr/include/gtk-2.0/gtk/gtkuimanager.h:64: error: parse error before "GObjectClass"
/usr/include/gtk-2.0/gtk/gtkuimanager.h:64: warning: no semicolon at end of struct or union
/usr/include/gtk-2.0/gtk/gtkuimanager.h:72: error: conflicting types for `connect_proxy'
/usr/include/gtk-2.0/gtk/gtkaction.h:72: error: previous declaration of `connect_proxy'
/usr/include/gtk-2.0/gtk/gtkuimanager.h:75: error: conflicting types for `disconnect_proxy'
/usr/include/gtk-2.0/gtk/gtkaction.h:74: error: previous declaration of `disconnect_proxy'
/usr/include/gtk-2.0/gtk/gtkuimanager.h:83: error: parse error before '*' token
/usr/include/gtk-2.0/gtk/gtkuimanager.h:85: error: parse error before '*' token
/usr/include/gtk-2.0/gtk/gtkuimanager.h:90: error: parse error before '}' token
/usr/include/gtk-2.0/gtk/gtkuimanager.h:110: error: parse error before "gtk_ui_manager_get_type"
/usr/include/gtk-2.0/gtk/gtkuimanager.h:110: error: parse error before "G_GNUC_CONST"
/usr/include/gtk-2.0/gtk/gtkuimanager.h:110: warning: data definition has no type or storage class
/usr/include/gtk-2.0/gtk/gtkuimanager.h:114: error: `gtk_ui_manager_get_add_tearoffs' declared as function returning a function
/usr/include/gtk-2.0/gtk/gtkuimanager.h:120: error: parse error before '*' token/usr/include/gtk-2.0/gtk/gtkuimanager.h:120: warning: data definition has no type or storage class
谁有经验,清指点 |
|