看板 Linux 關於我們 聯絡資訊
※ 引述《closedpath.bbs@ptt.cc (closed)》之銘言: > //---------以下是程式碼:--------------------- > #include <stdio.h> > int main() > { > printf("Hello World\n"); > exit(0); // remove this return 0; > } > //-------------------------------------------- > 我下了這個指令 > $gcc -c hello.c > 卻產生錯誤訊息 > hello.c: 在函式 「main」 中: > hello.c:6: 警告: 隱含宣告與內建函式 「exit」 不相容 > 請問該怎麼解決呢? -- ◣ ▁▁ ▄▌ 楓橋驛站<bbs.cs.nthu.edu.tw> ▃▌ 來自: 124-8-73-160.dynamic.tfn.net.tw