Notes on using gcc 4.8.2 on CAEN - Fall 2014

The gcc 4.8.2 release includes substantial C++11 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 4.8.2, issue the command:

module load gcc/4.8.2

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

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