当前位置:懂科普 >

IT科技

> Linux的C程序如何编译

Linux的C程序如何编译

1、打开Linux系统,启动shell命令终端。

Linux的C程序如何编译

2、在终端中输入gedit helloworld.c命令并回车。

Linux的C程序如何编译 第2张

3、进入之后进行编译,编译好后保存并退出。

Linux的C程序如何编译 第3张

4、输入gcc helloworld.c命令并回车,等待编译成功。

Linux的C程序如何编译 第4张

5、输入命令 ./a.out  即可运行程序。

Linux的C程序如何编译 第5张

标签: 编译 linux
  • 文章版权属于文章作者所有,转载请注明 https://dongkepu.com/itkeji/jk3ojg.html