Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

MKL7.2 and Intel Fortran 8.1 LNK2019 Error

sengiln
Beginner
773 Views
I am using Intel Fortran 8.1 Compiler on the Windows Net environment. One month ago because of the better Random Number Generator need I acquired MKL 7.2. I spent a lot of time but always getting the error of LNK2019:unresolved external symbolwhen I call vslnewstream and vdrnguniform subroutines. Can I get a sample Fortran code for the Windows Net environment for thevdrnguniform subroutine? My code is like that:
include 'mkl_vsl.fi'
Program TEST
use MKL_VSL_TYPE
use MKL_VSL
..
..
..
TYPE (VSL_STREAM_STATE),POINTER::stream
..
..
brng=VSL_BRNG_MCG31
..
call vslnewstream(stream,brng,seed)
call vdrnguniform(method,stream,n,r,a,b)
END Program
Additional dependencies:mkl_s.lib
Additional library directories: ../../../lib,lib,../../ia32/lib,%lib%
Best regards.
Nevsan Sengil
0 Kudos
2 Replies
Todd_R_Intel
Employee
773 Views
Try linking mkl_c.lib instead of mkl_s.lib. The first is the cdecl interface which is used by default with the Intel Fortran compiler and the second is the CVF default interface (similar to stdcall). This might solve your problem.
Todd
0 Kudos
sengiln
Beginner
773 Views
Dear Todd,
Thank you very much for the answer. My problem is solved.
Best regards.
Nevsan
0 Kudos
Reply