Hi,<div><br></div><div>I am trying to compile and build my code. Initially it&#39;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_&#39;:</div><div>global.F90:(.text+0xaaf5): undefined reference to `hypre_structgriddestroy_&#39;</div><div>global.F90:(.text+0xab06): undefined reference to `hypre_structstencildestroy_&#39;</div>
<div>global.F90:(.text+0xab17): undefined reference to `hypre_structmatrixdestroy_&#39;</div><div>global.F90:(.text+0xab28): undefined reference to `hypre_structvectordestroy_&#39;</div><div>global.F90:(.text+0xab39): undefined reference to `hypre_structvectordestroy_&#39;</div>
<div>global.F90:(.text+0xab55): undefined reference to `hypre_structsmgdestroy_&#39;</div><div>global.F90:(.text+0xab6d): undefined reference to `hypre_structpfmgdestroy_&#39;</div><div>global.F90:(.text+0xab8e): undefined reference to `hypre_structhybriddestroy_&#39;</div>
<div>global.F90:(.text+0xaba6): undefined reference to `hypre_structbicgstabdestroy_&#39;</div><div>global.F90:(.text+0xabb9): undefined reference to `hypre_structgmresdestroy_&#39;</div><div>hypre.o: In function `hypre_mp_hypre_solver_&#39;:</div>
<div>hypre.F90:(.text+0xb5): undefined reference to `hypre_structgridcreate_&#39;</div><div>hypre.F90:(.text+0x10f): undefined reference to `hypre_structgridsetextents_&#39;</div><div>hypre.F90:(.text+0x120): undefined reference to `hypre_structgridassemble_&#39;</div>
<div>hypre.F90:(.text+0x13b): undefined reference to `hypre_structstencilcreate_&#39;</div><div>hypre.F90:(.text+0x1c3): undefined reference to `hypre_structstencilsetelement_&#39;</div><div>hypre.F90:(.text+0x20e): undefined reference to `hypre_structmatrixcreate_&#39;</div>
<div>hypre.F90:(.text+0x224): undefined reference to `hypre_structmatrixsetsymmetric_&#39;</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>