brew search gcc
brew install gcc@4.9
用gcc-9代替系统自带gcc:
vim ~/.bash_profile
追加如下几行:
alias gcc='gcc-9'
alias g++='g++-9'
alias c++='c++-9'
brew search gcc
brew install gcc@4.9
用gcc-9代替系统自带gcc:
vim ~/.bash_profile
追加如下几行:
alias gcc='gcc-9'
alias g++='g++-9'
alias c++='c++-9'