CentOS下C++开发环境搭建

yum install XXX

vim 编辑工具
g++ 编译器
git 版本控制
gdb 调试工具
cmake 跨平台构建工具

vim插件的安装
#git clone https://gitee.com/chxuan/vimplus.git ~/.vimplus
# cd ~/.vimplus
# ./install.sh
创建并运行一个C++程序,创建C程序将cpp改为c

# touch test.cpp  创建文件
# vim test.cpp   编辑源程序
# g++ -o test test.cpp  编译
#  ./test   运行
原文地址:https://www.cnblogs.com/ttrrpp/p/12534198.html