[Dune] How to force -std=c++0x in a dune project?

Markus Blatt markus at dr-blatt.de
Sat Feb 16 17:03:30 CET 2013


On Sat, Feb 16, 2013 at 02:23:49PM +0100, Arya Fallahi wrote:
> Thank you very much for your hints. I followed your tips but there is still
> problem. In fact, the return of "g++ --version" and "gcc --version" are
> both the installed version 4.7.2, but in the config.log file I see the
> following line:
> 
> configure:3337: checking for gcc
> configure:3353: found /usr/bin/gcc
> configure:3363: result: gcc
> configure:3607: checking for C compiler version
> configure:3610: gcc --version </dev/null >&5
> gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50)
> Copyright (C) 2006 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.
> 
> which is the default installation on Redhat. I agree that this is the sort
> of the problem, but I could not remove it yet. I added CXX='g++' and
> CC='gcc' to the optfile but it still had the same problem. 

That is indeed really weired but presumably a problem with your
system. Have you tried providing the full path to gcc and g++?

Markus
-- 
Do you need more support with DUNE or HPC in general? 

Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858  Fax: +49 (0)322 1108991658 




More information about the Dune mailing list