Recently I wanted to work with C++11 standard, I installed GCC 4.7 on my mac with MacPorts
All my C++ file work great but I only have 3 .mm file that was previously compiled without error using GCC 4.2 but with GCC 4.7
nothing work.
But I dont know why,here the actual compile line used by C::B:
gcc-mp-4.7 -g -fopenmp -std=c++11 -DDEBUG -I/opt/local/include/libxml2 -I/usr/local/include -c xxx.mm -o obj/Debug/xxx.mm.o
The filename is not xxx, anyway, I also try to use from the file property to use a different compiler without success, my option are ignored and never saved so
they always use the compiler option from the main project...
I get a bunch of error like this:
/System/Library/Frameworks/Foundation.framework/Headers/NSTask.h:75:24: error: expected unqualified-id before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSTask.h:75:24: error: expected ')' before '^' token
Why GCC 4.7 give problem compared to 4.2?