Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28443 Discussions

VS2019 and Intel 2019 Fortran Compiler - Unresolved external symbol

Akindele__Tunde
537 Views

I am trying to compile a Fortran program with Intel 2019 Fortran Compiler, I keep getting the following unresolved external symbol errors:

error LNK2019: unresolved external symbol vdtanh_ referenced in function mlp_mp_tanh_func_
error LNK2019: unresolved external symbol vdasinh_ referenced in function mlp_mp_sinh_func_
error LNK2019: unresolved external symbol vddiv_ referenced in function mlp_mp_solve_
error LNK2019: unresolved external symbol vdinv_ referenced in function mlp_mp_solve_
error LNK2019: unresolved external symbol vdmul_ referenced in function mlp_mp_solve_
error LNK2019: unresolved external symbol vdinvsqrt_ referenced in function mlp_mp_solve_

Do you know what library to link with the program in order to resolve these errors?

Thank you.

0 Kudos
1 Solution
mecej4
Honored Contributor III
521 Views

The interfaces to the routines in question are in 

  • mkl_vml.f90

Link to the MKL library. For simple uses of the MKL library, simply use the /Qmkl compiler option. Otherwise, use the MKL Link Line Advisor .

View solution in original post

2 Replies
mecej4
Honored Contributor III
522 Views

The interfaces to the routines in question are in 

  • mkl_vml.f90

Link to the MKL library. For simple uses of the MKL library, simply use the /Qmkl compiler option. Otherwise, use the MKL Link Line Advisor .

Akindele__Tunde
484 Views

Thank you. Linking with mkl_rt.lib resolved the problem.

0 Kudos
Reply