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

Receiving LNK2001 errors

andrewj1
Beginner
716 Views
I am receiving the following error message when trying to bild my program:
modelcopy.obj : error LNK2001: unresolved external symbol _SORT@4
modelcopy.obj : error LNK2001: unresolved external symbol _ZEROIN@16
I have tried to search the web and literature, but I do not understand what the Sort@4 and Zeroin@16 mean. If anyone could help, it would be greatly appreciated.
Thanks,
Andrew
0 Kudos
2 Replies
TimP
Honored Contributor III
716 Views
It looks like the compiler sees functions defined in your code named sort(), with 4 bytes of arguments, and zeroin, with 16 bytes. Either you call them by mistake, or you provided them, but they failed to compile.
0 Kudos
andrewj1
Beginner
716 Views
Thanks tcprince, that took care of the problem. There were spelling errors in the program that were not allowing proper linking.
0 Kudos
Reply