天天看點

ubuntu 安裝 GCC 和 G++ C++ 開發環境

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.

繼續閱讀