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

Trouble with INCLUDE files

WSinc
New Contributor I
611 Views

Hello;

I ported a project over from CVF 6.6 which had COMMON blocks in include files.

For example: COM1.CMN, and the source files had INCLUDE "COM1.CMN" statements to refer to it.

I keep getting a compile message "could not find INCLUDE file" even though it definitely was in the project and I can see it in the Solution Visualizer. I tried putting in the Header files part, the Resource files, and along with the othe source code blocks. Nothing woked.

Does it nees a special extension? Maybe .CMN doesn't work any more.

Is there some special treatment to get the Intel compiler to recognize those? It worked fine with CVF. I had all the files under the same folder, but my impression is that's not really necessary.

0 Kudos
1 Reply
Steven_L_Intel1
Employee
611 Views
There's nothing special about .CMN. As with CVF, the compiler looks for INCLUDE files in the same folder as the source file (by default) and any folders listed under "Additional include directories". Having the include file show as a project source does not do anything for the compiler (though it's handy for you to see and edit the file.)

What is the exact compiler version you are using? (One way to tell - look at the first line of C:Program FilesIntelCompilerFortran9.1DocsNotesfsupport.txt and read the Package ID.)
0 Kudos
Reply