分页: 1 / 1

[已解决]编译C程序问题

发表于 : 2008-04-30 18:58
BlueSky-Thinker
我用gcc编译C语言文件,编译器竟然说:#include<conio.h>:No such file.为什么呢?
如果安装库文件的话,又是哪个呢?
急切求解中。

发表于 : 2008-04-30 19:00
dbzhang800
发帖前请先搜索论坛和wiki

http://wiki.ubuntu.org.cn/Gcchowto

不过你这个头文件似乎是win特有的!

发表于 : 2008-04-30 19:10
stlxv
关于conio.h:
This include file contains the function declarations for
the MS C V2.03 compatible console I/O routines.
And one more thing conio.h is not only in TC2.0 ,BC++、VC++、BCB have this file in the INCLUDE directory .
这说明了,linux中的gcc根本就没有这个头文件。

发表于 : 2008-04-30 19:13
BlueSky-Thinker
哦,是这样啊。谢谢.
------------我何止搜索过论坛和WIKI,我还搜过google 和baidu 的。

发表于 : 2008-05-26 23:55
ngei
sudo apt-get install build-essential