當前位置:生活全書館 >

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://shqsg.com/zh-mo/dianzi/rg4rv5.html