/fpp option seems to cause everything to recompile every time

/fpp option seems to cause everything to recompile every time

I inherited some FORTRAN code and am using Intel(R) Visual Fortran Compiler [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.

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Attach the .vfproj file from your project. It may give us a clue. Certainly this is not the usual behavior.

Steve (aka "Doctor Fortran") - Retired from Intel

Here it is, thanks for taking a look.


Downloadapplication/octet-stream MF2005.vfproj25.11 KB

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.

Steve (aka "Doctor Fortran") - Retired from Intel

Leave a Comment

Please sign in to add a comment. Not a member? Join today