LTCHIPS / rottexpr

A Rise Of The Triad Source Port with additional gameplay options and more...
GNU General Public License v2.0
97 stars 27 forks source link

-std=c17 requires gcc-8 Ubuntu Bionic #14

Closed noabody closed 5 years ago

noabody commented 5 years ago
cc: error: unrecognized command line option ‘-std=c17’; did you mean ‘-std=c11’?
<builtin>: recipe for target 'cin_actr.o' failed

Took me awhile to figure out how to build:

sudo apt install gcc-8
make -C src CC="gcc-8" -j4
noabody commented 5 years ago

Found the answer for Ubuntu 18.04 users Install gcc-8 only on Ubuntu 18.04?"

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
sudo update-alternatives --config 
ghost commented 5 years ago

Hello @noabody, Thank you for your interest in rottexpr. This project makes use of the latest software available.

We will update our README to clarify how to build it.

noabody commented 5 years ago

Thank you! Sorry for the inconvenience.