I would like to build a fully static Fortran application using Intel Visual Fortran 2019 and Visual Studio 2019 Enterprise.
I need to include the IMSL 7 library in my application.

In Visual Studio Project Properties, I setted the static include directory and the "Additional libraries directory".

So, I started my program with this code:

include 'LINK_FNL_STATIC.h'
!DEC$ OBJCOMMENT LIB: "libguide.lib"
But I got a linker error:

Can not open "libguide.lib"
So I tried another thing:

!DEC$ OBJCOMMENT LIB: "libomp5md.lib"
But I got a different linker error:

unresolved external symbol __io_func referenced in funtion l_open_license_file
unresolved external symbol sprintf referenced in funtion l_open_license_file
How can I static link the IMSL library in my IVF program?

My system is:
  • Windows 10 x64
  • Intel Visual Fortran 2019
  • Visual Studio 2019 Enterprise
  • IMSL 7.0