今天编译的时候出了一堆的错误,如下:
/usr/local/arm/4.6.3/bin/../arm-none-linux-gnueabi/libc/usr/include/semaphore.h:37:22: error: expected declaration specifiers or '...' before 'sem_t'
/usr/local/arm/4.6.3/bin/../arm-none-linux-gnueabi/libc/usr/include/semaphore.h:40:25: error: expected declaration specifiers or '...' before 'sem_t'
/usr/local/arm/4.6.3/bin/../arm-none-linux-gnueabi/libc/usr/include/semaphore.h:43:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/arm/4.6.3/bin/../arm-none-linux-gnueabi/libc/usr/include/semaphore.h:46:23: error: expected declaration specifiers or '...' before 'sem_t'
/usr/local/arm/4.6.3/bin/../arm-none-linux-gnueabi/libc/usr/include/semaphore.h:49:12: error: storage class specified for parameter 'sem_unlink'
/usr/local/arm/4.6.3/bin/../arm-none-linux-gnueabi/libc/usr/include/semaphore.h:55:22: error: expected declaration specifiers or '...' before 'sem_t'
/usr/local/arm/4.6.3/bin/../arm-none-linux-gnueabi/libc/usr/include/semaphore.h:62:27: error: expected declaration specifiers or '...' before 'sem_t'
/usr/local/arm/4.6.3/bin/../arm-none-linux-gnueabi/libc/usr/include/semaphore.h:67:25: error: expected declaration specifiers or '...' before 'sem_t'
/usr/local/arm/4.6.3/bin/../arm-none-linux-gnueabi/libc/usr/include/semaphore.h:70:22: error: expected declaration specifiers or '...' before 'sem_t'
/usr/local/arm/4.6.3/bin/../arm-none-linux-gnueabi/libc/usr/include/semaphore.h:73:26: error: expected declaration specifiers or '...' before 'sem_t'
之前编译好好,后来加了一堆接口之后再编译就这样,很明显就是新加入的接口造成的。
到网上搜了一下有所发现,有人说的函数声明时缺少了分号引起的,于是就仔细的找了一下,果然是缺少了分号。
修改后就没有这个问题了。
这个提示和错误明显不对应啊。。。。
阅读(12772) | 评论(0) | 转发(0) |