1.先安装 :sudo apt-get install build-essential
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.
2.查看 gcc 版本 然后安装 统一版本的 g++
gcc --versiongcc (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.
本文介绍如何在Ubuntu系统中安装GCC和G++,包括安装步骤、查看版本的方法及确保GCC和G++版本一致性的操作流程。
安装 GCC 和 G++ C++ 开发环境&spm=1001.2101.3001.5002&articleId=78485498&d=1&t=3&u=49644ea7263a47fdb9b1966fc83a3637)
2万+

被折叠的 条评论
为什么被折叠?



