Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
Intel Customer Support will be observing the Martin Luther King holiday on Monday, Jan. 17, and will return on Tues. Jan. 18.
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646

Issue with running MKL sample code

Tian__Will
Beginner
181 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
181 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