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

Arya Fallahi arya.fallahi at gmail.com
Sat Feb 16 17:14:00 CET 2013


Hi Markus,

yes, I did that. I wrote:

CC=/tools/gcc-4.7.2/bin/gcc
CXX=/tools/gcc-4.7.2/bin/g++

In this case, a correct g++ is detected and the standard option -std=c++0x
is also added to the compiler. But, then the dune-istl fails compiling. In
the meantime, I happened to realize that the m4 installation on linux is
very old and this may be a reason why autotools do not find the correct
gcc. I have installed a new version of m4 and am right now installing
everything again. However, I am afraid that even if the problem with
finding is solved the compilation problem of dune-istl is still there.

Thanks for your help,
Arya


On Sat, Feb 16, 2013 at 5:03 PM, Markus Blatt <markus at dr-blatt.de> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20130216/9e1f6279/attachment.htm>


More information about the Dune mailing list