gcc-7 和 gcc-9版本切换 查看版本: gcc -v g++ -v 切换版本: sudo update-alternatives --config gcc sudo update-alternatives --config g++ 选择即可