centos 8 编译*.cpp文件

1、安装g++

yum -y install gcc-c++

2、编译*.cpp文件

g++ -o test_app_name test_source_file.cpp

3、运行编译结果

./test_app_name

posted @ 2021-10-08 12:02  dcrenl  阅读(94)  评论(0编辑  收藏  举报