Dear all,
I'm using ifort composer_xe_2013_sp1.2.144 with Ubuntu 14.04.4
I want to install a program following the instruction given for other compilers and platforms.
I compiled the relevant source files and created a library libtrlan.a. with ar t I checked that all objects are included.
The I wanted to create a test program that uses the programs in libtrlan.a, which themselves need LAPACK and BLAS routines.
Problem 1:
Irrespective of whether I try to link the MKL libraries to the exe or not, none of the routines for which interfaces in a MOD file are given is found
ifort -o simple.exe libtrlan.a simple.o
yields simple.f90:(.text+0x88): undefined reference to `trl_init_info_' etc.
If I change the order of the files
ifort -o simple.exe simple.o libtrlan.a
there are undefined references to the BLAS routines that are not yet added.
Problem 2:
When I try to link the MKL libraries with
ifort -o simple.exe -L/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64/ libmkl_lapack95_lp64.a libmkl_blas95_lp64.a simple.o libtrlan.a
I get fortran errors
ifort: error #10236: File not found: 'libmkl_lapack95_lp64.a'
ifort: error #10236: File not found: 'libmkl_blas95_lp64.a'
When I do not use the -Ldir option
ifort -o simple.exe /opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64/libmkl_lapack95_lp64.a /opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64/libmkl_blas95_lp64.a simple.o libtrlan.a
I get again the undefined references to the BLAS routines.
I have no idea what's going wrong.
Please, help.
alex