On an OS X machine (Snow Leopard, if it matters), I'm attempting to upgrade from gcc 4.2.1 to 4.7.3.
I followed instructions here and here, and can now compile code using either -std=c++0x or std=c++11 from the command line.
But Eclipse CDT still appears to be using the old gcc version. I edited my project so that it has std=c++0x as a miscellaneous argument to the compiler. And yet, when I do a build within CDT I get the following output:
07:48:16 **** Build of configuration Debug for project 4.1 Valuation ****
make all
Building file: ../src/BondModel.cpp
cc1plus: error: unrecognized command line option "-std=c++0x"
make: *** [src/BondModel.o] Error 1
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -std=c++0x -MMD -MP -MF"src/BondModel.d" -MT"src/BondModel.d" -o "src/BondModel.o" "../src/BondModel.cpp"
07:48:16 Build Finished (took 109ms)
if I copy and paste that g++ line to terminal, it runs fine.
What do I need to change in eclipse so that it uses the installed and selected version of gcc?