Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
3 Views

Compile Fortran with ARPACK in Linux

I want to use the

gfortran test.f90  -lblas -llapack

to compile the file test.f90 and want to use arpack but there is an error message:

 

test5.f90:(.text+0x7d9): undefined reference to `dsaupd_'
test5.f90:(.text+0x990): undefined reference to `dseupd_'
test5.f90:(.text+0xbbf): undefined reference to `dmout_'

 

0 Kudos
4 Replies
Highlighted
Black Belt
3 Views

This is a forum for Intel

This is a forum for Intel Fortran, not gfortran. I suggest posting to the comp.lang.fortran newsgroup.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos
Highlighted
Black Belt
3 Views

In addition to Steve's

In addition to Steve's comments: note that Arpack is not part of BLAS or Lapack, so you would need to build it from sources or find a pre-built Arpack library and install it.

0 Kudos
Highlighted
Beginner
3 Views

I understand that probably I

I understand that probably I post the question in the wrong forum but before I delete it, I would like to reply to mecej4. I have installed Arpack following http://modb.oce.ulg.ac.be/mediawiki/index.php/How_to_compile_ARPACK. I would like to know what my problem I have.

0 Kudos
Highlighted
Black Belt
3 Views

If you have followed those

If you have followed those instructions, your app will need to be linked with -L$HOME/ARPACK etc ahead of the lapack and blas references.  Any of the clf, gcc-help, or stackoverflow/fortran sites should be helpful.

0 Kudos