Answers for "how to set gcc-8 as default in linux"

0

how to set gcc-8 as default in linux

#make sure give priority on your required version
eg:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8 --slave /usr/bin/gcov gcov /usr/bin/gcov-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7 --slave /usr/bin/gcov gcov /usr/bin/gcov-7
Posted by: Guest on July-06-2021

Code answers related to "how to set gcc-8 as default in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language