Ubuntu安装g++ 

sudo apt-get install make gcc g++  

再装上函数手册  sudo apt-get install manpages-dev

或者采用 sudo apt-get install build-essential

安装g++后成功与否使用命令:

g++ --version或者g++ -v

查看gcc g++的信息   

1)当前gcc版本:      gcc -v   

2)当前g++版本:      g++ -v      注:gcc和g++版本一定要对应   

3)查看当前可用的gcc,g++版本     

    update-alternatives --config gcc    

    update-alternatives --config g++

相关文章:

  • 2021-10-03
  • 2021-10-03
  • 2021-10-05
  • 2022-01-12
  • 2021-11-26
  • 2022-12-23
  • 2021-06-15
  • 2022-12-23
猜你喜欢
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2021-11-20
相关资源
相似解决方案