|
安装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
试过多个版本出现相同问题
希望高手解答 |
|