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

Nested Includes In Fortran not prompting re-compile

andy_parker
Beginner
379 Views
The situation is Main.For includes Include1.FI which in turn includes Include2.FI. Changes to Main or Include1 will prompt a recompile. The problem is that changes to Include2 do not cause a recompile of Main.

I know that this feature was working with Intel 9.1 / VS 2005. Now, with Intel 10.1 or 11.0 I get this build behavior.

A workaround seems to be to list all the possible included files in a Header Files folder for each project. As long as Include2 is listed there, the build behaves correctly. In the end, this workaround is not too much of a file-management headache. But, Id rather not use it if theres something more transparent.

What Im wondering is: is this behavior intentional or a bug?


0 Kudos
1 Reply
Steven_L_Intel1
Employee
379 Views
I have not been able to reproduce this behavior. Can you attach a ZIP of a sample project that shows it?
0 Kudos
Reply