首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > 嵌入开发 >

error: expected '=' '' '' 'asm' or '

2012-12-14 
error: expected '', ',', '', ɺsm' or '__attribute__

error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
编译atk遇到以下错误,实在解决不了,能的头都大了,各位大神帮帮忙啊
libtool: compile:  arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_DISABLE_DEPRECATED -DATK_DISABLE_DEPRECATED -DATK_COMPILATION -DATK_LOCALEDIR="/home/embedded/tools/share/locale" -pthread -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -O0 -msoft-float -march=armv4t -mtune=arm920t -mcpu=arm920t -I/root/yu_src/libjingle-0.6.3/gtkfb/includeCPPFLAGS=-O0 -msoft-float -march=armv4t -mtune=arm920t -mcpu=arm920t -I/root/yu_src/libjingle-0.6.3/gtkfb/include -Wall -MT atkaction.lo -MD -MP -MF .deps/atkaction.Tpo -c atkaction.c  -fPIC -DPIC -o .libs/atkaction.o
cc1: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
In file included from ../atk/atkobject.h:29,
                 from atkaction.h:26,
                 from atkaction.c:20:
../atk/atkstate.h:173: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
In file included from atkaction.h:26,
                 from atkaction.c:20:
../atk/atkobject.h:384: error: expected specifier-qualifier-list before 'G_CONST_RETURN'
../atk/atkobject.h:538: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
../atk/atkobject.h:539: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
../atk/atkobject.h:574: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
../atk/atkobject.h:585: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
In file included from atkaction.c:20:
atkaction.h:56: error: expected specifier-qualifier-list before 'G_CONST_RETURN'
atkaction.h:86: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
atkaction.h:88: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
atkaction.h:90: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
atkaction.h:98: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
atkaction.c:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
atkaction.c:143: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
atkaction.c:169: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
atkaction.c:206: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
atkaction.c: In function 'atk_action_set_description':
atkaction.c:243: error: 'AtkActionIface' has no member named 'set_description'
atkaction.c:244: error: 'AtkActionIface' has no member named 'set_description'


atkaction.c:247: warning: control reaches end of non-void function
make[3]: *** [atkaction.lo] Error 1
make[3]: Leaving directory `/root/yu_src/libjingle-0.6.3/gtk-src/atk/atk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/yu_src/libjingle-0.6.3/gtk-src/atk/atk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/yu_src/libjingle-0.6.3/gtk-src/atk'
make: *** [all] Error 2

[解决办法]
这个问题解决,因为是版本的问题,下了一个最新版本编译通过了

热点排行