- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Todd,
Thank you very much for the answer. My problem is solved.
Best regards.
Nevsan

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page