Notes on using gcc 4.7 on CAEN - Fall 2013

The gcc 4.7 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.4.x as the default. To get access to gcc 4.7, issue the command:

module load gcc/4.7.0

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

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