- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page