Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28459 Discussions

Compile Fortran with ARPACK in Linux

Wilson_C_
Beginner
839 Views

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
Steve_Lionel
Honored Contributor III
839 Views

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

0 Kudos
mecej4
Honored Contributor III
839 Views

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
Wilson_C_
Beginner
839 Views

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
TimP
Honored Contributor III
839 Views

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
Reply