<div class="gmail_quote">On Thu, Jan 5, 2012 at 14:12, Wen Jiang <span dir="ltr"><<a href="mailto:jiangwen84@gmail.com">jiangwen84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":5p5">I built PETSc with parmetis, and tried to call a Metis routine in my PETSc code. But it cannot be linked correctly. I got the error like<br><br>"undefined reference to 'METIS_PartMeshNodal(int*,int*,int*,int*,int*,int*,int*,int*,int*) "<br>
</div></blockquote><div><br></div><div>metis.h has extern "C" in the header, so you must have gotten this declaration from somewhere else.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":5p5">
<br> I don't know whether I should do anything
special with my PETSc c++ code(s) in order to call a Metis routine.<br></div></blockquote></div><br>