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

Problem with an unresolved symbol _for__rtc_uninit_src

Arjen_Markus
Honored Contributor II
1,388 Views

Hello,

for one of our program suites I keep getting a bizarre link error, which my colleagues do not experience. The message is:

error LNK2001: unresolved external symbol _for__rtc_uninit_use_src   

By the looks of it and from checking the sources (we do not have a routine of that name) I guess that this is a routine that should be in the runtime libraries. So, my question is: how can I solve this?

For your information:

  • I am using Visual Studio 2010
  • The version of the Intel Fortran compiler is Intel® Parallel Studio XE 2015 Composer Edition for Fortran Windows* Update 1 Integration for Microsoft Visual Studio* 2010, Version 15.0.0115.2010

 

 

 

0 Kudos
3 Replies
Steven_L_Intel1
Employee
1,388 Views

This procedure is in the default Intel Fortran library libifcoremt.lib (or libifcoremd.lib for DLL linking). You have not shown how you are building the program. Is this a mixed C-Fortran program? In normal use it would be automatically resolved along with the rest of the run-time library references. Are you perhaps linking to a library from an older version?

0 Kudos
Arjen_Markus
Honored Contributor II
1,388 Views

Hi Steve,

well, some of the programs are indeed using a mixture of C (or C++) and Fortran and it seems that there are some references to possibly older compiler versions. I will try and sort these out. I will report back when I have come to some conclusion.

0 Kudos
Arjen_Markus
Honored Contributor II
1,388 Views

For the one program in this collection I am interested in at the moment, the problem turned out to be due to an explicit reference to a directory belonging to an older version of the compiler. It was via the IFORT_COMPILER12 variable. I removed that and the program was correctly built. Sometimes solutions are simple indeed.

0 Kudos
Reply