<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Just to let you know is that I built petsc with c++ anyway since I did<div><br></div><div><div>configure -with-cc=gcc --download-mpich=1 --download-parmetis=1 --with-#shared=0 --download-f-blas-lapack --with-clanguage=cxx --with-cxx=g++ --with-fc=ifort --with-dynamic=0</div><div><br></div><div><br></div><div>Tahar</div><div><br></div><div><br></div><div><div>Le 15 mai 09 à 23:49, Matthew Knepley a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">On Fri, May 15, 2009 at 4:35 PM, Tahar Amari <span dir="ltr"><<a href="mailto:amari@cpht.polytechnique.fr">amari@cpht.polytechnique.fr</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Thanks ,<br> <br> Now this a different kind of errors (just a piece of those below :) </blockquote><div><br>If you want to use C++, you should configure using --with-clanguage=cxx. Then you will get the C++ linker.<br><br> Matt<br> </div> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br> gcc -o mh4d mh4d.o petsc.o comm.o setbc.o local.o gridutil.o mympi.o terminator.o operator.o shellsort.o edge.o side.o vertex.o tetrahedron.o rotation.o tetrahedralgrid.o field.o -I/usr/local/hdf/HDF4.2r1/include -L/usr/local/hdf/HDF4.2r1/lib -lmfhdf -ldf -lsz -ljpeg -lz -L/usr/local/petsc/macx/lib -lpetscsnes -lpetscvec -lpetscmat -lpetsccontrib -lpetscts -lpetscdm -lpetscksp -lpetsc -lmpich -lmpichcxx -lpmpich -lfmpich -lmpichf90 -lparmetis -lmetis -lfblas -lflapack -L/usr/X11R6/lib -lX11 -lXt -lXext -lX11 -L/usr/local/petsc/macx/lib -lpetscsnes -lpetscvec -lpetscmat -lpetsccontrib -lpetscts -lpetscdm -lpetscksp -lpetsc -lmpich -lmpichcxx -lpmpich -lfmpich -lmpichf90 -lparmetis -lmetis -lfblas -lflapack<br> Undefined symbols:<br> "std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)", referenced from:<br> PetscErrorCxx(int, char const*, char const*, char const*, int, int)in libpetsc.a(err.o)<br> PETSc::Exception::Exception(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libpetsc.a(err.o)<br> "_for_stop_core", referenced from:<br> _advmom_cv_ in mh4d.o<br> _advmom_cv_ in mh4d.o<br> _advmom_cv_ in mh4d.o<br> _terminators_mp_terminator_ in terminator.o<br> _terminators_mp_terminator_all_ in terminator.o<br> _tetrahedralgrid_mod_mp_zero_bndr_tvv_ in tetrahedralgrid.o<br> <br> <br> <br> <br> Le 15 mai 09 à 23:29, Matthew Knepley a écrit :<br> <br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> CLINKER<br> </blockquote> <br> </blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br> </blockquote></div><br></div></body></html>