ifort -llapack -lblas nor working

ifort -llapack -lblas nor working

I am trying to diagonalise matrix using lapack.But after installing lapack its showing this error.[bla@Einstein test]$ ifort sample-matrix-diagonalised.f90 -llapack -lblasld: warning: libgfortran.so.3, needed by /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so, not found (try using -rpath or -rpath-link)/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_compare_string@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_transfer_character@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_transfer_integer@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_etime@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_stop_numeric@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_st_write_done@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_pow_i4_i4@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_st_write@GFORTRAN_1.0'/usr/lib64/libblas.so.3: undefined reference to `_gfortran_runtime_error_at@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_string_len_trim@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_concat_string@GFORTRAN_1.0'[bimla@Einstein test]$ [bimla@Einstein test]$ ifort sample-matrix-diagonalised.f90 -llapack -lblasld: warning: libgfortran.so.3, needed by /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so, not found (try using -rpath or -rpath-link)/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_compare_string@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_transfer_character@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_transfer_integer@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_etime@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_stop_numeric@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_st_write_done@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_pow_i4_i4@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_st_write@GFORTRAN_1.0'/usr/lib64/libblas.so.3: undefined reference to `_gfortran_runtime_error_at@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_string_len_trim@GFORTRAN_1.0'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_concat_string@GFORTRAN_1.0'[bla@Einstein test]$can somebody help me here?Thanks in advance.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

You're linking to gfortran-specific versions of those libraries.  Either find copies built for use with Intel Fortran or link with Intel MKL.  See the MKL user forum and the Link Line Advisor for more details.

Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today