[Dune] How to force -std=c++0x in a dune project?
Christoph GrĂ¼ninger
christoph.grueninger at iws.uni-stuttgart.de
Fri Feb 15 22:35:22 CET 2013
Hi Arya,
are you sure that you are using a g++ 4.7? Type "g++ --version" in a
terminal and see which version you get.
I assume that you have an older version of g++ installed and that is
used. To change it, you can set the compiler with
CC=gcc-4.7 CXX=g++-4.7
or however the newer compiler is called.
Dune decides setting this flag by trying to compile a program with
-std=c++0x. If that fails the flag is not used. You can find the
result in the configure output like
checking whether g++ accepts -std=c++0x... yes
and more verbose in config.log.
Bye
Christoph
P.S.: Would you mind to stop calling us "Dune support team"? At least
I am not aware of the existence of such a team :-)
More information about the Dune
mailing list