Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

error LNK2001 ‘unresolved external symbol’ error when using IMSL lib

lu_z_
Beginner
755 Views

Hi, everyone, I have a problem related to unsuccessful using of IMSL lib

In my original source code main.f90 (which is written by other people couple years ago), IMSL lib are called using

a command 

 include INCLUDE 'link_f90_static.h'

However, the ivf complier failed to find link_f90_static.h file in my computer, and threw me a Error #5102.

I guess it's because the version of IMSL is different on our two laptops. The problem was resolved when 

I substituted the original command with the following one

 include INCLUDE 'link_fnl_static.h'

However, though the first problem was resolved, the second one emerged:a branch of error messages appeared in

the input window, like

1>imsls_err.lib(e1ucs.obj) : error LNK2001: unresolved external symbol ___kmpc_global_thread_num

It seems I did not use the IMSL completely successful

I guess it's due to the modification of code I have engaged before, but I'm not 100% sure about that

Any suggestion? Thank you.

 

0 Kudos
1 Reply
Steven_L_Intel1
Employee
755 Views

Add the following line after the include:

!DEC$ OBJCOMMENT LIB:"libiomp5md.lib"

0 Kudos
Reply