sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
sudo apt-get install gcc-7 g++-7 -y

 

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 50
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 70

 

update-alternatives --config gcc
update-alternatives --config g++

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-12-26
  • 2021-06-13
猜你喜欢
  • 2022-12-23
  • 2021-07-27
  • 2021-05-26
  • 2021-12-12
  • 2022-01-04
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案