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

linker error

jmsmith
Beginner
536 Views
I am trying to compile a program with CVF version 6.5 and
I am getting the following linker error:

LNK2001: unresolved external symbol _LEQI@16

I have checked the code and their are no calls to external libraries. I cannot figure out what the
symbol _LEQI@16 is. Can anyone help?

0 Kudos
3 Replies
TimP
Honored Contributor III
536 Views
My first guess still would be that somewhere your source code generates a call to a function or subroutine named leqi (could be a typo, maybe an undeclared array). Either that function failed to compile, or it didn't come out with matching argument declarations. In many cases, the /debug option will give better diagnostics.
0 Kudos
Steven_L_Intel1
Employee
536 Views
You have a call to a subroutine or function named LEQI - the full error message will tell you the name of the object file that contains the reference, which will match the name of a source file.

Compare the call of LEQI against the declaration of the routine by the same name (and if you don't have one, what is the call supposed to do?) Verify that the argument lists match in number of arguments and datatypes of arguments - be especially wary of a mismatch between character and non-character. The argument lists must match (unless you're using OPTIONAL arguments and then you need an explicit interface.)

Steve
0 Kudos
jmsmith
Beginner
536 Views
Right on, there was a logical variable called leqi
but it is just used in a subroutine. Why it gives an
error is beyond me. I deleted the subroutine and
I received no linking errors.

Thank you very much

Jim
0 Kudos
Reply