Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Issue with running MKL sample code

Tian__Will
Beginner
162 Views

I was trying to run MKL sample code with VS2019 and encounter a Linking error.

LNK2019: unresolved external symbol _DASUM_F95 referenced in function _MAIN__ 1.obj Error fatal error

LNK1120: 1 unresolved externals Debug\Console1.exe

I think the "program" is well defined. It seems to be related to MKL.  If I comment out  "use f95_precision, only: wp => dp use blas95, only: asum"  and other statements related to MKLit will compile. So please help me to solve it. Thx!

 

https://software.intel.com/en-us/forums/intel-fortran-compiler/topic/856637#

 

 

0 Kudos
1 Reply
Gennady_F_Intel
Moderator
162 Views

You could check how to build dasumx.f90 example from mklroot\examples\blas95 directory. Don't forget to link against the appropriate list of mkl's libraries ( e.x -mkl_blas95_lp64.lib mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib) - please refer tp the mkl linker adviser follow the link: https://software.intel.com/content/www/us/en/develop/articles/intel-mkl-link-line-advisor.html

Reply