您的位置:首页 > 编程语言 > C语言/C++

ubuntu 安装 GCC 和 G++ C++ 开发环境

2016-01-07 19:03 387 查看
1.先安装 :sudo apt-get install build-essential

2.查看 gcc 版本 然后安装 统一版本的 g++

gcc --version

gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5

Copyright (C) 2010 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

3 安装 g++

sudo apt-get install g++-4.4

4查看安装版本

g++ --version

g++ (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5

Copyright (C) 2010 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: