Notes on using gcc 9.1.0 on CAEN - Fall 2019

The gcc 9.1.0 release includes feature-complete C++17 support in the compiler and library. It will be used by the autograder for the C++ projects in the course.

CAEN's standard environment currently has a much earlier gcc as the default. To get access to gcc 9.1.0, issue the command:

module load gcc/9.1.0

This makes your default gcc to be gcc 9.1.0 for the duration of your login. You can also put this command in your login initialization files if you want.

Compile using g++ as usual, but include the option to select the c++17 dialect. For example:

g++ -std=c++17 test.cpp