Notes on using gcc 7.1.0 on CAEN - Fall 2017

The gcc 7.1.0 release includes substantial C++14 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 gcc 4.x as the default. To get access to gcc 7.1.0, issue the command:

module load gcc/7.1.0

This makes your default gcc to be gcc 7.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++14 dialect. For example:

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