//---------以下是程式碼:---------------------
#include <stdio.h>
int main()
{
printf("Hello World\n");
exit(0);
}
//--------------------------------------------
我下了這個指令
$gcc -c hello.c
卻產生錯誤訊息
hello.c: 在函式 「main」 中:
hello.c:6: 警告: 隱含宣告與內建函式 「exit」 不相容
請問該怎麼解決呢?
--
All Comments