Ubuntu15.0安装测试gcc(C编译环境)

 时间:2024-10-12 22:57:08

1、打开终端(快捷键Ctrl+Alt+t)输入sudoapt-getinstallbuild-essential

Ubuntu15.0安装测试gcc(C编译环境)

2、运行结果如下图,因为我已经配置过了,所以显示的都是0

Ubuntu15.0安装测试gcc(C编译环境)

3、进入到要保存C程序的目录,在终端中输入:gedit hello.c创建并打开hello.c文件

Ubuntu15.0安装测试gcc(C编译环境)

4、在打开的hello.c中输入c程序。保存并关闭

Ubuntu15.0安装测试gcc(C编译环境)

5、输入:sudo gcc hello.c -o hello讲hello.c编译成可执行的hello文件

Ubuntu15.0安装测试gcc(C编译环境)

6、输入:./hello执行hello文件。至此安装配置并测试gcc完成。

Ubuntu15.0安装测试gcc(C编译环境)
  • 电脑开始菜单在哪里
  • eclipse使用教程
  • 电脑资源管理器怎么打开
  • 窗口关闭不了怎么办
  • win10如何安装visualstudio2010旗舰版?
  • 热门搜索
    熬夜喝什么好 gms是什么意思 射是什么意思 什么电视剧好看偶像剧 梦到杀人是什么意思 莫名其妙的名的意思 井底之蛙是什么意思 ahead是什么意思 reliable是什么意思 s档是什么意思