<div class="gmail_quote">On Thu, Jan 5, 2012 at 14:12, Wen Jiang <span dir="ltr">&lt;<a href="mailto:jiangwen84@gmail.com">jiangwen84@gmail.com</a>&gt;</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>&quot;undefined reference to &#39;METIS_PartMeshNodal(int*,int*,int*,int*,int*,int*,int*,int*,int*) &quot;<br>
</div></blockquote><div><br></div><div>metis.h has extern &quot;C&quot; 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&#39;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>