当前位置: 技术问答>linux和unix
求助gcc编译头文件出错的问题,急!!!!!!
来源: 互联网 发布时间:2015-09-23
本文导语: 请教一下各位XDJM: 我在solaris下用gcc编译一个程序时提示如下错误: /usr/include/strings.h:25 parse error before ',' token /usr/include/strings.h:25 declaration of C function 'void* memmove(void*,const void*,unsigned int)' here /usr/inc...
请教一下各位XDJM:
我在solaris下用gcc编译一个程序时提示如下错误:
/usr/include/strings.h:25 parse error before ',' token
/usr/include/strings.h:25 declaration of C function 'void* memmove(void*,const void*,unsigned int)' here
/usr/include/strings.h:25 variable or field 'size_t' declared void
/usr/include/strings.h:25 'int size_t' redeclared as different kind of symbol
/use/local/lib/gcc-lib/aparc-sun-solaris2.8/3.2.2/include/sys/types.h:464:previous declaration of 'sypedef unsigned int size_t'
... ...
哪位高手能指导一下如何解决啊,非常感谢!
我在solaris下用gcc编译一个程序时提示如下错误:
/usr/include/strings.h:25 parse error before ',' token
/usr/include/strings.h:25 declaration of C function 'void* memmove(void*,const void*,unsigned int)' here
/usr/include/strings.h:25 variable or field 'size_t' declared void
/usr/include/strings.h:25 'int size_t' redeclared as different kind of symbol
/use/local/lib/gcc-lib/aparc-sun-solaris2.8/3.2.2/include/sys/types.h:464:previous declaration of 'sypedef unsigned int size_t'
... ...
哪位高手能指导一下如何解决啊,非常感谢!
|
compare 这个宏 传递参数 和 使用参数不一致