Is your PETSc configured to use Hypre? If so, send the entire failing link line and configure.log.<div><br></div><div> Matt<br><br><div class="gmail_quote">On Thu, Oct 21, 2010 at 10:46 AM, Wee-Beng Tay <span dir="ltr"><<a href="mailto:zonexo@gmail.com">zonexo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<div><br></div><div>I am trying to compile and build my code. Initially it's simply a fortran PETSc code and I managed to build the code.</div>
<div><br></div><div>However, when I try to compile another similar code which has HYPRE 2.6b, it has problems linking:</div>
<div><br></div><div><div>global.o: In function `global_data_mp_de_ini_var_':</div><div>global.F90:(.text+0xaaf5): undefined reference to `hypre_structgriddestroy_'</div><div>global.F90:(.text+0xab06): undefined reference to `hypre_structstencildestroy_'</div>
<div>global.F90:(.text+0xab17): undefined reference to `hypre_structmatrixdestroy_'</div><div>global.F90:(.text+0xab28): undefined reference to `hypre_structvectordestroy_'</div><div>global.F90:(.text+0xab39): undefined reference to `hypre_structvectordestroy_'</div>
<div>global.F90:(.text+0xab55): undefined reference to `hypre_structsmgdestroy_'</div><div>global.F90:(.text+0xab6d): undefined reference to `hypre_structpfmgdestroy_'</div><div>global.F90:(.text+0xab8e): undefined reference to `hypre_structhybriddestroy_'</div>
<div>global.F90:(.text+0xaba6): undefined reference to `hypre_structbicgstabdestroy_'</div><div>global.F90:(.text+0xabb9): undefined reference to `hypre_structgmresdestroy_'</div><div>hypre.o: In function `hypre_mp_hypre_solver_':</div>
<div>hypre.F90:(.text+0xb5): undefined reference to `hypre_structgridcreate_'</div><div>hypre.F90:(.text+0x10f): undefined reference to `hypre_structgridsetextents_'</div><div>hypre.F90:(.text+0x120): undefined reference to `hypre_structgridassemble_'</div>
<div>hypre.F90:(.text+0x13b): undefined reference to `hypre_structstencilcreate_'</div><div>hypre.F90:(.text+0x1c3): undefined reference to `hypre_structstencilsetelement_'</div><div>hypre.F90:(.text+0x20e): undefined reference to `hypre_structmatrixcreate_'</div>
<div>hypre.F90:(.text+0x224): undefined reference to `hypre_structmatrixsetsymmetric_'</div><div> ...</div><div><br></div><div>I have attached my global.F90, and also my makefile. Hope someone can help. I think if I can solve the global.F90 problem, the other hypre.F90 can be solved as well.</div>
<div><br></div><div>Thank you.</div><br>-- <br>================================================<br>Wee-Beng TAY<br>Postdoctoral Fellow<br><div>Aerodynamics Group</div><div>Aerospace Engineering</div>Delft University of Technology<br>
<div>Kluyverweg 2</div><div>2629 HT Delft</div><div>The Netherlands</div>Temporary E-mail: <a href="mailto:zonexo@gmail.com" target="_blank">zonexo@gmail.com</a><br>================================================ <br><br>
</div>
</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>
</div>