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   运行

 

posted on 2020-03-20 19:30  trp  阅读(2631)  评论(0编辑  收藏  举报

导航