<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="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>
</div>