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!
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