I inherited some FORTRAN code and am using Intel(R) Visual Fortran Compiler 188.8.131.52 [Intel(R) 64] in Visual Studio 2017. The source code requires the /fpp option because it contains #defines. There is a lot of code and it takes a while to recompile. The whole code base recompiles every time even when no changes have been made and it slow me way down. What am I doing wrong?
Thanks in advance for a work around.
Attach the .vfproj file from your project. It may give us a clue. Certainly this is not the usual behavior.
I don't see anything obvious there. I don't think this has anything to do with enabling the preprocessor. Sometimes what helps is to exit VS, delete the .sln and .sou files from the solution folder, then restart VS. These are "hidden files" created by Visual Studio, so you may need to set the Windows Explorer option to show hidden files to see them.
I have seen others say that creating a new project (with the original source files) resolves the problem. Unfortunately Visual Studio does not expose the logic it uses for determining file dependencies so that one can see what it is doing.