谁能告诉我这是什么情况

来源:互联网 发布:安卓防蓝光软件 编辑:程序博客网 时间:2024/05/01 21:01

/usr/include/stdint.h:56:1: error: duplicate ‘unsigned’
/usr/include/stdint.h:56:27: error: multiple types in one declaration
/usr/include/stdint.h:56:27: error: declaration does not declare anything [-fpermissive]


俺读书少,不知道什么意思,看上去似乎是什么东西重复声明了
起初以为是'unsigned'重复了,因为报错以及http://blog.csdn.net/caianye/article/details/6898401等博文均提示这个信息,但在代码中没有找到哪里有声明'unsigned'。
打开/usr/include/stdint.h,文件的56行(包括前后几行)是这样的:
#if __WORDSIZE == 64
typedef unsigned long int       uint64_t;
#else
__extension__
typedef unsigned long long int  uint64_t;
#endif

会不会代码里声明了uint64_t,再次检查代码果然如此,删除自己声明的uint64_t,重新编译,通过!
0 0