LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1581|回复: 1

GTK+安装问题:(编译阶段)

[复制链接]
发表于 2007-7-24 14:50:14 | 显示全部楼层 |阅读模式
安装GTK+,编译时出现下面的erorr:

....gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../gdk -I../../../gdk -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/local/include/atk-1.0 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/X11R6/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/X11R6/include -g -O2 -Wall -MT pixbuf-draw.lo -MD -MP -MF .deps/pixbuf-draw.Tpo -c pixbuf-draw.c  -fPIC -DPIC -o .libs/pixbuf-draw.o
In file included from ../../../gtk/gtk.h:60,
                 from pixbuf.h:23,
                 from pixbuf-draw.c:28:
../../../gtk/gtkclist.h:157: error: syntax error before "GMemChunk"
../../../gtk/gtkclist.h:157: warning: no semicolon at end of struct or union
../../../gtk/gtkclist.h:158: warning: type defaults to `int' in declaration of `cell_mem_chunk'
../../../gtk/gtkclist.h:158: warning: data definition has no type or storage class
../../../gtk/gtkclist.h:247: error: syntax error before '}' token
In file included from ../../../gtk/gtk.h:68,
                 from pixbuf.h:23,
                 from pixbuf-draw.c:28:
../../../gtk/gtkctree.h:112: error: field `clist' has incomplete type
In file included from ../../../gtk/gtk.h:152,
                 from pixbuf.h:23,
                 from pixbuf-draw.c:28:
../../../gtk/gtkstatusbar.h:71: error: syntax error before "GMemChunk"
../../../gtk/gtkstatusbar.h:71: warning: no semicolon at end of struct or union
../../../gtk/gtkstatusbar.h:85: error: syntax error before '}' token
make[4]: *** [pixbuf-draw.lo] Error 1
make[4]: Leaving directory `/home/jgang/gtk+-2.6.4/modules/engines/pixbuf'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jgang/gtk+-2.6.4/modules/engines'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jgang/gtk+-2.6.4/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jgang/gtk+-2.6.4'
make: *** [all] Error 2

试过多个版本出现相同问题
希望高手解答
发表于 2007-7-24 19:02:35 | 显示全部楼层
什麽系统?gcc 版本?其他依赖都满足了?

也有可能是 gcc 版本太高但 gtk+ 版本太低
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表