[petsc-users] Error linking with HYPRE

Wee-Beng Tay zonexo at gmail.com
Thu Oct 21 10:46:06 CDT 2010


Hi,

I am trying to compile and build my code. Initially it's simply a fortran
PETSc code and I managed to build the code.

However, when I try to compile another similar code which has HYPRE 2.6b, it
has problems linking:

global.o: In function `global_data_mp_de_ini_var_':
global.F90:(.text+0xaaf5): undefined reference to `hypre_structgriddestroy_'
global.F90:(.text+0xab06): undefined reference to
`hypre_structstencildestroy_'
global.F90:(.text+0xab17): undefined reference to
`hypre_structmatrixdestroy_'
global.F90:(.text+0xab28): undefined reference to
`hypre_structvectordestroy_'
global.F90:(.text+0xab39): undefined reference to
`hypre_structvectordestroy_'
global.F90:(.text+0xab55): undefined reference to `hypre_structsmgdestroy_'
global.F90:(.text+0xab6d): undefined reference to `hypre_structpfmgdestroy_'
global.F90:(.text+0xab8e): undefined reference to
`hypre_structhybriddestroy_'
global.F90:(.text+0xaba6): undefined reference to
`hypre_structbicgstabdestroy_'
global.F90:(.text+0xabb9): undefined reference to
`hypre_structgmresdestroy_'
hypre.o: In function `hypre_mp_hypre_solver_':
hypre.F90:(.text+0xb5): undefined reference to `hypre_structgridcreate_'
hypre.F90:(.text+0x10f): undefined reference to
`hypre_structgridsetextents_'
hypre.F90:(.text+0x120): undefined reference to `hypre_structgridassemble_'
hypre.F90:(.text+0x13b): undefined reference to `hypre_structstencilcreate_'
hypre.F90:(.text+0x1c3): undefined reference to
`hypre_structstencilsetelement_'
hypre.F90:(.text+0x20e): undefined reference to `hypre_structmatrixcreate_'
hypre.F90:(.text+0x224): undefined reference to
`hypre_structmatrixsetsymmetric_'
 ...

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.

Thank you.

-- 
================================================
Wee-Beng TAY
Postdoctoral Fellow
Aerodynamics Group
Aerospace Engineering
Delft University of Technology
Kluyverweg 2
2629 HT Delft
The Netherlands
Temporary E-mail: zonexo at gmail.com
================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20101021/bfa65c16/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: global.F90
Type: application/octet-stream
Size: 37878 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20101021/bfa65c16/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makefile
Type: application/octet-stream
Size: 1757 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20101021/bfa65c16/attachment-0003.obj>


More information about the petsc-users mailing list