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

using IFMT?

cordes
Beginner
1,235 Views

I'm working with some old code that was ported from MS Visual Studio 6 and Compaq Visual Fortran to Visual Studio 2003.NET and Intel Visual FORTRAN 9.0

In the old code one file had a line :

include "MF.FD"

The MF.FD file simply includes the file "DFMT.F90"

Everything worked with this code and the old compiler.

After porting over the new MF.FD file includes the file "IFMT.F90"

When i try to compile with the this new code I get an "Error: Unterminated Conditional Compilation directive compilation aborted for (Code 1)

If I comment out the include "mt.fd" line and the couple lines of code that reference variable names from the ifmt module everything is fine. Why is this not working?

0 Kudos
2 Replies
Steven_L_Intel1
Employee
1,235 Views

Hard to say without seeing the actual files. I suggest filing a support request with Intel Premier Support and attach a complete test case. Be sure to include your project files or build script.

Let me suggest though that instead of the INCLUDE line you should have instead:

USE IFMT

The file DFMT.F90 was not intended to be included in a source - if you do that, you end up building a module named DFMT.

0 Kudos
cordes
Beginner
1,235 Views

Steve,

Sorry I can't post actual code, it is runnning on a secure system. However I changed the include statement to a USE IFMT and it seems to have solved my problems. I still have some other errors with how they are using the IFMT implementation now, but now that it is working they are fixable.

Thanks

0 Kudos
Reply