关闭→
当前位置:科普经验站>IT科技>Linux的C程序怎样编译

Linux的C程序怎样编译

科普经验站 人气:1.78W

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张

TAG标签:#编译 #linux #