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

编译打包和其他
回复
BlueSky-Thinker
帖子: 23
注册时间: 2008-03-06 23:10
来自: HU Nan

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

#1

帖子 BlueSky-Thinker » 2008-04-30 18:58

我用gcc编译C语言文件,编译器竟然说:#include<conio.h>:No such file.为什么呢?
如果安装库文件的话,又是哪个呢?
急切求解中。
上次由 BlueSky-Thinker 在 2008-05-01 19:14,总共编辑 1 次。
dbzhang800
帖子: 3182
注册时间: 2006-03-10 15:10
来自: xi'an China
联系:

#2

帖子 dbzhang800 » 2008-04-30 19:00

发帖前请先搜索论坛和wiki

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

不过你这个头文件似乎是win特有的!
头像
stlxv
论坛版主
帖子: 8275
注册时间: 2006-05-03 0:39
来自: المريخ

#3

帖子 stlxv » 2008-04-30 19:10

关于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根本就没有这个头文件。
PHP是最好的语言!不服来战!
BlueSky-Thinker
帖子: 23
注册时间: 2008-03-06 23:10
来自: HU Nan

#4

帖子 BlueSky-Thinker » 2008-04-30 19:13

哦,是这样啊。谢谢.
------------我何止搜索过论坛和WIKI,我还搜过google 和baidu 的。
ngei
帖子: 2
注册时间: 2008-05-26 23:53

#5

帖子 ngei » 2008-05-26 23:55

sudo apt-get install build-essential
回复