I have a C++ code that uses C++ extensions that are only present in
gcc 4.3 (using -std=c++0x)
From the gcc-4.3.2 man page:
c++0x
The working draft of the upcoming ISO C++0x standard. This
option enables experimental features that are likely to be
included in C++0x. The working draft is constantly changing,
and any feature that is enabled by this flag may be removed
from future versions of GCC if it is not part of the C++0x
standard.
I first recompiled a gcc 4.3 and installed it in /usr/local. The
compiler is working and I can recompile my code using a Makefile.
Now I would like to use X Code but I don't know how to tell X Code to
use my own compiler.
I looked in the X Code options.
GCC_VERSION is a numeric value and "4.3" is an invalid value.
I added "-std=c++0x" to OTHER_CPLUSPLUSFLAGS but gcc (4.0, default)
does not recognise it.
What I would like is a way to tell X Code that the C++ compiler is
/usr/local/bin/g++
Is that possible?