I recently installed Ubuntu 15.10 and installed codeblocks from the repository.
The g++ version that came with Ubuntu is reported in the terminal as 5.2.1.
I went to test out that Code::Blocks is running the right g++ version, I know there is an error in earlier versions of g++ where default constructors ignore the private access specifier. This is sorted out by 5.2.1. I tested this out by compiling in the command line, which throws an error as expected since I'm running 5.2.1. However when I run this through code blocks there is no error? This is odd because the compiler settings show it is using the exact same compiler so I can't figure out why. I also made sure to select the -std=c++11 flag.
This image shows what I mean:
The terminal does not compile. But codeblocks, shown to use the exact same compiler, does. What could be wrong here? (And yes the project is also using the GCC compiler).