我已经使用此命令行在我的 linux mint 17.1 (KDE) 中安装了代码块
sudo apt-get install codeblocks
,但是当我尝试在代码块上编译和运行一个 c 程序时,它向我显示了这个错误
/home/redwan/Programmin/C Program/hello.c|1|fatal error: stdio.h: No such file or directory| ||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
请有人帮助我使用代码块在 linux mint 17.1(KDE) 中正确运行 c 和 c++ 程序。
抱歉我的英语不好。
最佳答案
将其保存到主目录中名为“install.sh”(不带引号)的文件中,打开终端 (Ctrl+Alt+t) 并运行命令“bash install.sh”(同样不带引号)。
#!/bin/bash
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install build-essential -y
sudo apt-get install codeblocks -y
sudo apt-get install codeblocks-contrib -y
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get autoremove -y
sudo apt-get autoclean -y
exit 0;
关于c++ - 如何在 Linux mint 17.1 (KDE) 中安装代码块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30865321/