我是Linux Mint 15用户.
我想用C编写简单的程序.
下面是我的代码.(hw.c)
#include<stdio.h>
#include<conio.h>
int main()
{
printf("Hello World");
}
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试用gcc编译它时
gcc -o hw hw.c
Run Code Online (Sandbox Code Playgroud)
它给了我一个错误
hw.c:1:18: fatal error: stdio.h: No such file or directory
compilation terminated.
Run Code Online (Sandbox Code Playgroud)
我用Google搜索并找到一些解决方案,说安装build-essential
并尝试安装它
sudo apt-get install build-essintial
Run Code Online (Sandbox Code Playgroud)
但它再次出错.错误是
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information …Run Code Online (Sandbox Code Playgroud)