|
12 就是每本gtk编程的书的第一个例子,我编译过后,开始是找不到gtk/gtk.h,查找了一下,这个文件夹并不在include下,因此将gtk文件夹拷贝到include下,再编译,还是不成功,出现很多解析错误,类似以下的错误:
/usr/include/gtk/gtkvscale.h:31:21: gdk/gdk.h: 没有那个文件或目录
In file included from /usr/include/gtk/gtk.h:157,
from test.c:1:
/usr/include/gtk/gtkvscale.h:53: field `scale' has incomplete type
/usr/include/gtk/gtkvscale.h:58: field `parent_class' has incomplete type
/usr/include/gtk/gtkvscale.h:62: parse error before "gtk_vscale_get_type"
/usr/include/gtk/gtkvscale.h:62: parse error before "G_GNUC_CONST"
/usr/include/gtk/gtkvscale.h:64: parse error before "min"
In file included from /usr/include/gtk/gtk.h:159,
from test.c:1:
/
test.c: In function `main':
test.c:9: parse error before ')' token
test.c: At top level:
/usr/include/gtk/gtksizegroup.h:52: storage size of `requisition' isn't known
/usr/include/gtk/gtkruler.h:107: storage size of `subdivide' isn't known
/usr/include/gtk/gtktexttag.h:165: storage size of `appearance' isn't known
想请问到底是什么原因?thanks!
:thank |
|