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

2024-10-12 22:57:08

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

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

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

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

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

Ubuntu15.0安装测试gcc(C编译环境)
猜你喜欢