On Thu, May 24, 2012 at 7:46 AM, Baruch Burstein <[email protected]> wrote:
> Specifically, I am looking to change the default mode of g++ to c++11. Where
> would I change that?
Well, you have several options for this. If you're set on building
the code you'll need to find the source for the internal specs file
and modify the %{std* string so that c++11 is used instead of ansi.
Note that there is more than one place to change.
On the other hand it will be easier to just add a specs file to the
/path/to/lib/gcc/TARGET/VERSION/ directory with the changed values.
You can get a specs file by simply doing g++ -dumpspecs > specs.
But all of this was said already.
If you're using a POSIX shell such as bash you could also assign an
alias as long as your make file isn't using an absolute PATH for the
compiler. If the make file is GNU standard then you should be able to
assign CXX variable as well.
alias g++='g++ -std=c++11'
export CXX='g++ -std=c++11'
You can also create a script file
<file name="/path/to/bin/g++">
#! /path/to/bin/sh
g++ -std=c++11 "$@"
</file>
<file name="/path/to/bin/g++.bat>
g++ -std=c++11 %1 %2 %3 %4 %5 %6 %7 %8 %9
</file>
--
Earnie
-- https://sites.google.com/site/earnieboyd
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public