Ubuntu 配置 gcc 和 g++ 版本


update-alternatives --list gcc
update-alternatives --list g++
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 90
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
gcc --version
g++ --version

Author: Yixiang Zhang
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint policy. If reproduced, please indicate source Yixiang Zhang !
评论
  TOC