看板Linux
标 题Re: [问题] 一个很笨,有关gcc的问题
发信站枫桥驿站 (Sun Jul 6 23:16:35 2008)
转信站ptt!ctu-reader!ctu-gate!news.nctu!newsfeed.nthu!news.cs.nthu!netnews.c
※ 引述《[email protected] (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
▇▌▊ ╰▆