I installed gcc47 using macports. I used select to make gcc47 my active compiler. When I type gcc --version in terminal I get this: gcc (MacPorts gcc47 4.7.2_2) 4.7.2 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
When I try to compile c++ code in Eclipse I get: Invoking: GCC C++ Compiler g++ -D__GXX_EXPERIMENTAL_CXX0X__ -I/Users/XXXX/QtSDK/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr -O0 -g3 -Wall -c -fmessage-length=0 -std=c++0x -MMD -MP -MF"XXXX_Process.d" -MT"XXXX_Process.d" -o "XXXX_Process.o" "../XXXX_Process.cpp" cc1plus: error: unrecognized command line option "-std=c++0x" make: * [XXXX_Process.o] Error 1
I am not sure what I am not doing to make this work. I need a more up to date compiler for programs I am writing in my for school. Thanks in advance for your help.