ubuntu gcc与g++版本更新问题

ubuntu gcc与g++版本更新问题

近期使用ubuntu编译mt7682 openwrt源码,编译报错。
在这里插入图片描述
百度发现,gcc,g++版本太低,不支持c++11,4.7版本以后才会支持,现在是gcc version 4.6.3。现在下载version 4.8.0,所以要更新gcc g++版本

下载地址:点击这里

下载完成。
cd 解压后的目录
./configure
发现报错:

checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting si
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值