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

Problems linking to blas95 in fortran

franbab1978
Beginner
549 Views

Dear forum members,

I have been having some issues using MKL and blas95 with Visual studio and intel visual fortran.

Here is the code that I am trying to run

program main

use mkl95_blas

implicit none

real(kind=8), dimension(4) :: a=(/1.,2.,3.,4./), b=(/4.,3.,2.,1./)
real(kind=8) :: c

c = dot(a,b)
write(*,*) 'c=', c

end program main


I get the following error

unresolved external symbol _DDOT_MKL95 referenced in function _MAIN__ main.obj

I have done the following:

- ifort runs properly

- I have built the BLAS95 routines with ifort and have the mkl95_blas.mod and mkl95_precision.mod in the standard dir ../i32/lib

- The instructions in the User Guide section "Fortran 90 Interfaces and Wrappers to LAPACK and BLAS" have been followed, and the directory /intel/mkl/10.0.5.025/include contains
the files mkl95_blas.mod, mkl95_lapack.mod and mkl95_precision.mod as well as some .f77, f.90 and .h files.The directory /opt/intel/mkl/10.0.5.025/i32/lib/ also contains mkl95_blas.mod, mkl95_lapack.mod and mkl95_precision.mod as well as the .lib files

- I have managed to compile the examples in the examples/blas95 directory by typing nmake lib32 from the command prompt.

Any hints would be greatly appreciated.

Thanks,

Frank

0 Kudos
0 Replies
Reply