当前位置: 代码迷 >> 嵌入开发 >> error: expected '=' '' '' 'asm' or 'attribute_' before 'gchar'解决思路
  详细解决方案

error: expected '=' '' '' 'asm' or 'attribute_' before 'gchar'解决思路

热度:1505   发布时间:2013-02-26 00:00:00.0
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'
  相关解决方案