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

Debuging old fortran-77 code

tundres
Beginner
598 Views

Hi,

we are testing the intel fortran compiler. Without make any changes, we could compile old projects without problem. Now, I am trying to make a .dll of a part of an old project written in fortran-77. In fact, it worked, but only if I use the release mode. If I want to debug, I'm getting the same error code in a lot of subroutines:

Error 2 error #7977: The type of the function reference does not match the type of the function definition.
and cannot build. Anyone knows what is happening here?
Thank you very much!

0 Kudos
2 Replies
Steven_L_Intel1
Employee
598 Views

The compiler is helping you by pointing out an error in your code. You are calling functions where the caller thinks the return type is one thing, but the actual function declares it as something else. This can lead to incorrect or unexpected behavior.

I encourage you to investigate the error messages and fix the code. If you want to disable this kind of error checking, right click on the project, select Properties > Fortran > Diagnostics. Set "Check Routine Interfaces" to "No".

0 Kudos
tundres
Beginner
598 Views

Thank you very much Steve, it works, if I set what you said. I'm glad to have such a good support.

I agree, I should fix the code but I don't really want to get in. It is a lot of old old fortran code, completly uncomented...but it worked until today. I'm afraid, that if I "fix" something, the code doesn't work anymore...Anyway, I will have your suggestion in mind :)

Thank you again

0 Kudos
Reply