<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I am compiling a fortran code in principle not even one line of C++ and link with libraries.&nbsp;<div><br></div><div>Do you mean that the line&nbsp;</div><div><br></div><div><blockquote type="cite">Undefined symbols:<br>&nbsp;"std::basic_ostringstream&lt;char, std::char_traits&lt;char>, std::allocator&lt;char> >::basic_ostringstream(std::_Ios_Openmode)", referenced from:<br>&nbsp; &nbsp; &nbsp;PetscErrorCxx(int, char const*, char const*, char const*, int, int)in libpetsc.a(err.o)</blockquote></div><div><br></div><div><br></div><div>is not telling that the c++ missing symbol is not in&nbsp;&nbsp;libpetsc.a(err.o) ?</div><div><br></div><div>which is from what I understand petsc library and not my source ?</div><div><br></div><div><br></div><div>Tahar</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><div><div>Le 16 mai 09 à 00:00, Matthew Knepley a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">On Fri, May 15, 2009 at 4:56 PM, Tahar Amari <span dir="ltr">&lt;<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;"> I am sorry (I might have missed something)<div class="im"><br> <br> <br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> If you want to use C++, you should configure using --with-clanguage=cxx. Then you will get the C++ linker.<br> </blockquote> <br></div> I do not really want to use C++ linker<br> <br> I did it with the C Linker and got an error. I do not see where the C++ is now used</blockquote><div><br>You have C++ code in there somewhere. It is hard to see what is going on since we do not have the source.<br><br>&nbsp; Matt<br> &nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br> Tahar<div class="im"><br> <br> cc &nbsp;-o &nbsp;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 &nbsp; -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 &nbsp;-L/usr/X11R6/lib -lX11 -lXt -lXext -lX11 &nbsp;-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> &nbsp;"std::basic_ostringstream&lt;char, std::char_traits&lt;char>, std::allocator&lt;char> >::basic_ostringstream(std::_Ios_Openmode)", referenced from:<br> &nbsp; &nbsp; &nbsp;PetscErrorCxx(int, char const*, char const*, char const*, int, int)in libpetsc.a(err.o)<br> &nbsp; &nbsp; &nbsp;PETSc::Exception::Exception(std::basic_string&lt;char, std::char_traits&lt;char>, std::allocator&lt;char> > const&amp;)in libpetsc.a(err.o)<br> &nbsp;"_for_stop_core", referenced from:<br> &nbsp; &nbsp; &nbsp;_advmom_cv_ in mh4d.o<br> &nbsp; &nbsp; &nbsp;_advmom_cv_ in mh4d.o<br> &nbsp; &nbsp; &nbsp;_advmom_cv_ in mh4d.o<br> &nbsp; &nbsp; &nbsp;_terminators_mp_terminator_ in terminator.o<br> &nbsp; &nbsp; &nbsp;_terminators_mp_terminator_all_ in terminator.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_zero_bndr_tvv_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_zero_bndr_tvv_ in tetrahedralgrid.o<br></div> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_idnt_bndr_tvv_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_idnt_bndr_tvv_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_v2v_operator_bc_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_v2v_operator_bc_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_tvvaxpy_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_tvvaxpy_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_v2v_scalar_bc_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_v2v_scalar_bc_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_zero_bndr_tvs_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_zero_bndr_tvs_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_v2v_operator_bc0_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_v2v_operator_bc0_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_v2v_operator_bct_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_v2v_operator_bct_ in tetrahedralgrid.o<br> &nbsp; &nbsp; &nbsp;_xerbla_ in libfblas.a(xerbla.o)<br> &nbsp;"_for_exit", referenced from:<br> &nbsp; &nbsp; &nbsp;_tetrahedralgrid_mod_mp_partition_tetragrid_ in tetrahedralgrid.o<br> <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>