microsoft / ELL

Embedded Learning Library
https://microsoft.github.io/ELL
Other
2.27k stars 294 forks source link

Update documentation to use gcc-8 #213

Closed dashesy closed 3 years ago

dashesy commented 5 years ago

Before cmake is invoked the documentation for Ubuntu16 should be updated to use gcc-8 and g++-8, e.g.

$ export CXX=`which g++-8`
$ export CC=`which gcc-8`
$ cmake ..

Otherwise old gcc will be used, and make will result in many errors

lovettchris commented 5 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
dashesy commented 5 years ago

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.

lovettchris commented 3 years ago

Documentation updated by this commt to show explicit selection of gcc-8 when invoking cmake.