error: storage class specified for parameter

本文记录了一次使用GCC编译过程中遇到的“storage class specified for parameter”错误,并详细描述了如何通过逐步排除法找到引起该错误的头文件wordexp.h。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值