error: storage class specified for parameter
root@ubuntu:/media/LENOVO/src1/2/meego/src/meeGo-OS-Base/uxlaunch/src# arm-linux-androideabi-gcc -DHAVE_CONFIG_H -I. -I.. -g
-O2 -MT uxlaunch-desktop.o -MD -MP -MF .deps/uxlaunch-desktop.Tpo -c -o uxlaunch-desktop.o `test -f 'desktop.c' || echo
'./'`desktop.c
In file included from uxlaunch.h:4,
from desktop.c:31:
/host/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/X11/Xauth.h: In function 'libc_hidden_proto':
/host/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/X11/Xauth.h:45: error: storage class specified for parameter 'Xauth'
.......
At first, this really bothers me since there's nothing like 'libc_hidden_proto' in uxlaunch.h, desktop.c or Xauth.h. But when I
google "error: storage class specified for parameter" , a guy said in http://bbs.ednchina.com/BLOG_ARTICLE_1495057.HTM that he met
the same issue, and this was because of another .h header file.
This also hits me.
so i try to delete some included header files to find out which header file causes this issue. and it turns out it's the
wordexp.h.
libc_hidden_proto(wordfree)
http://www.ixpub.net/thread-1414591-1-1.html
The C++ storage-class specifiers tell the compiler the duration and visibility of the object or function they declare, as well as where an object should be stored.
Grammar
storage-class-specifier:
auto
register
static
extern