<div dir="ltr">Obviously in <div>CFLAGS          = -std=c++0x<br></div><div><br></div><div>Sorry ! I need holidays :-).</div><div><br></div><div>Christophe </div></div><div class="gmail_extra"><br clear="all"><div>CIEMAT<br>
Laboratorio Nacional de Fusión por Confinamiento Magnético<br>Unidad de Materiales<div>Edificio 2 - Planta 0 - Despacho 28m<br>Avenida Complutense 40,<br>28040 Madrid, Spain<br>Tel: +34 91496 2582<br>Fax: +34 91346 6442<br>
<br>--<br><span style="color:rgb(0,128,0);font-family:Webdings;font-size:x-large">Q</span> <div><span style="background-color:rgb(255,255,255);white-space:pre-wrap">Por favor, piense en el medio ambiente antes de imprimir este mensaje.</span><div>
<span style="white-space:pre-wrap">Please consider the environment before printing this email.</span></div></div></div></div>
<br><br><div class="gmail_quote">On Wed, Apr 2, 2014 at 2:19 PM, Christophe Ortiz <span dir="ltr"><<a href="mailto:christophe.ortiz@ciemat.es" target="_blank">christophe.ortiz@ciemat.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>Hi all,</div><div><br></div><div>Since I'm solving problems with many dof (thousands) I developed a programming interface in C++ to manage and automatize the coupling between the different fields and to distribute the different terms in the matrix.</div>

<div>Now I am adding the different PETSc commands but the compiler complains with the typical error when using C++:</div><div><br></div><div>This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.</div>

<div><br></div><div>In the case of C++ files (without PETSc) this is solved by simply adding the option -std=c++0x in the compilation line. I tried to add the -std=c++0x option in the makefile as follows but it does not work:</div>

<div><br></div><div><div>diffusion: diffusion.o chkopts</div><div>        -${CLINKER} -std=gnu++0x -o diffusion diffusion.o ${PETSC_TS_LIB}</div><div>        ${RM} diffusion.o</div><div><br></div><div><br></div><div>Where can I add this option in the makefile used to compile PETSc code ?</div>

<div><br></div><div>Many thanks in advance.</div><div>Christophe</div><div><br></div>--<br><span style="color:rgb(0,128,0);font-family:Webdings;font-size:x-large">Q</span> <div><span style="white-space:pre-wrap">Por favor, piense en el medio ambiente antes de imprimir este mensaje.</span><div>

<span style="white-space:pre-wrap">Please consider the environment before printing this email.</span></div></div></div></div>
</div>
</blockquote></div><br></div>