Sorry if this is a really simple question but I'm pulling my hair out with this one! I've just installed the MKL and wrote a couple of test programs. The first one just uses BLAS and compiles and runs fine with:
ifc -o test_blas -L/opt/intel/mkl/lib/32/ -lmkl_p3 -lguide test_blas.f90
However, a similar program using a lapack routine doesn' compile and:
ifc -o test_lapack -L/opt/intel/mkl/lib/32/ -lmkl_lapack -lmkl_p3 -lguide test_lapack.f90
returns an error:
undefined reference to 'sgesv_'
What is going on quite? When I 'ar t libmkl_lapack.a | grep sgesv' I get
Have I missed something really obvious? I don't see how the BLAS can work fine and this cause problems. Any pointers would be much appreciated.