Hi, so I am very new to Fortran and learning to do some simple matrix calculation using LAPACK. I have already downloaded the BLAS and LAPACK library from http://icl.cs.utk.edu/lapack-for-windows/lapack/. I tried to link the library to the program and it told me it does not have any error. And here is what I did to import the library ftn95 -o lapack_example.f95 /IMPORT_LIB libblas.lib ftn95 -o lapack_example.f95 /IMPORT_LIB liblapack.lib The response is NO ERRORS However, whenever I try to run the program, it gives me an error message 'Error 29, Call to missing routine: _DGEMV at 0x004010e5'.
And here is my code
program matrixlapack
implicit none
real, dimension(3) :: X=(/1.D0, 2.D0, 3.D0/)
REAL, dimension(3):: Y=(/2.D0, 2.D0, 2.D0/)
real:: Z
CALL DGEMV('N', 1, 3, 1.D0, X, 1, Y, 1, 0.D0, Z, 1)
PRINT *, Z
STOP
END
Can anyone tell me what's wrong? Thank you very much!! 😃