Closed dashesy closed 3 years ago
Sure, or you could do this to change your system default:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 50 --slave /usr/bin/g++ g++ /usr/bin/g++-8
That too works but update-alternatives
changes gcc, and then I have to remember to change it back. Because most other projects need system gcc.
Documentation updated by this commt to show explicit selection of gcc-8 when invoking cmake.
Before
cmake
is invoked the documentation for Ubuntu16 should be updated to use gcc-8 and g++-8, e.g.Otherwise old gcc will be used, and
make
will result in many errors