|
今天编译写的程序时出现了附件中的错误,提示是/usr/include/stdlib.h的错误,请问这该如何修复?在网上找的方法看不太明白,说是好像是Java环境的错误。
出现的错误如下,请问这该如何修复/usr/include/stdlib.h文件?
essai.c:1: erreur: expected «=», «,», «;», «asm» or «__attribute__» before «<» token
In file included from essai.c:2:
/usr/include/stdlib.h:140: erreur: expected «=», «,», «;», «asm» or «__attribute__» before «__ctype_get_mb_cur_max»
In file included from essai.c:2:
/usr/include/stdlib.h:337: erreur: expected declaration specifiers or «...» before «size_t»
/usr/include/stdlib.h:367: erreur: expected declaration specifiers or «...» before «size_t»
/usr/include/stdlib.h:369: erreur: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:471: erreur: expected «)» before «__size»
/usr/include/stdlib.h:473: erreur: expected «)» before «__nmemb»
/usr/include/stdlib.h:485: erreur: expected declaration specifiers or «...» before «size_t»
In file included from /usr/include/stdlib.h:497,
from essai.c:2:
/usr/include/alloca.h:33: erreur: expected «)» before «__size»
In file included from essai.c:2:
/usr/include/stdlib.h:502: erreur: expected «)» before «__size»
/usr/include/stdlib.h:507: erreur: expected declaration specifiers or «...» before «size_t»
/usr/include/stdlib.h:507: erreur: expected declaration specifiers or «...» before «size_t»
/usr/include/stdlib.h:681: erreur: expected declaration specifiers or «...» before «size_t»
/usr/include/stdlib.h:681: erreur: expected declaration specifiers or «...» before «size_t»
/usr/include/stdlib.h:682: erreur: nonnull argument with out-of-range operand number (argument 1, operand 5)
/usr/include/stdlib.h:686: erreur: expected declaration specifiers or «...» before «size_t»
/usr/include/stdlib.h:686: erreur: expected declaration specifiers or «...» before «size_t»
/usr/include/stdlib.h:687: erreur: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:759: erreur: expected declaration specifiers or «...» before «size_t»
/usr/include/stdlib.h:762: erreur: expected declaration specifiers or «...» before «size_t»
/usr/include/stdlib.h:766: erreur: expected declaration specifiers or «...» before «size_t»
/usr/include/stdlib.h:770: erreur: expected declaration specifiers or «...» before «size_t»
/usr/include/stdlib.h:779: erreur: expected declaration specifiers or «...» before «size_t»
/usr/include/stdlib.h:783: erreur: expected declaration specifiers or «...» before «size_t»
/usr/include/stdlib.h:790: erreur: expected «=», «,», «;», «asm» or «__attribute__» before «mbstowcs»
/usr/include/stdlib.h:793: erreur: expected «=», «,», «;», «asm» or «__attribute__» before «wcstombs»
essai.c: Dans la fonction «main» :
essai.c:8: attention : incompatible implicit declaration of built-in function «printf» |
|