The easiest way to link correctly is to use the PETSc makefile format:<br><br>prog: file1.o file2.o<br>     ${CLINKER} -o prog file1.o file2.o ${PETSC_SNES_LIB}<br><br>   Matt<br><br><div class="gmail_quote">On Fri, Aug 7, 2009 at 6:17 PM,  <span dir="ltr">&lt;<a href="mailto:irfan.khan@gatech.edu">irfan.khan@gatech.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi<br>
I have been compiling and running my Petsc code on a TERAGRID cluster (Steele - Purdue) for sometime now. Recently they made changes to their operating system and also installed a clean version of Petsc (it now makes use of MPICH-2 instead of MPICH).<br>

<br>
However my make file is not successfully linking anymore. The error message I get is as follows.<br>
<br>
ld: cannot find -llapack<br>
make: *** [te] Error 1<br>
<br>
I see that the blaslapack package is not available under &quot;externalpackages&quot; directory. I presume the link error is because the lapack library is included in the PETSC_LIB command and this library may not have been installed during PETSc installation. I say this because the make file works fine on my laptop where I have installed blas-lapack during PETSc installation. Please correct me if I am wrong.<br>

<br>
How can I resolve this link error? Kindly suggest.<br>
<br>
<br>
Thank you<br>
Irfan<br>
<font color="#888888">--<br>
PhD Candidate<br>
G.W. Woodruff School of Mechanical Engineering<br>
Georgia Institute of Technology<br>
Atlanta, GA (30332)<br>
</font></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>