Troubleshooting Fortran Integration Issues with Visual Studio

This article describes diagnostic and repair steps to follow if Intel Visual Fortran integration into Microsoft Visual Studio is not working correctly

The symptoms of errors with Fortran integration into Visual Studio include:

  • When opening a Fortran project, an error indicating that the .vfproj project file is not recognized
  • Missing Fortran-specific parts of the Visual Studio interface, such as project templates or project properties
  • Inability to start a build of a Fortran project
  • No Fortran files compile when building a project
  • You get an error when trying to create a new Fortran project

This article applies to Intel Visual Fortran Compiler Professional Edition versions 10.0 through 11.1, and Intel Visual Fortran Composer XE versions 2011, 2013 and 2013 SP1, with Microsoft Visual Studio 2003, 2005, 2008, 2010, 2012 or 2013.

Step 1 - are prerequisites met?

If you are using Intel Visual Fortran 10.0, Visual Studio versions 2003 and 2005 are supported.
If you are using Intel Visual Fortran 10.1 (10.1.019 or later), 11.0 or 11.1, Visual Studio versions  2003, 2005 and 2008 are supported.
If you are using Intel Visual Fortran Composer XE 2011 (compiler version 12.0 or 12.1), Visual Studio versions 2005, 2008 and 2010 are supported.
If you are using Intel Visual Fortran Composer XE 2013 (compiler version 13.0 and 13.1), Visual Studio versions 2008, 2010 and 2012 are supported.
If you are using Intel Visual Fortran Composer XE 2013 SP1 (compiler version 14.0), Visual Studio versions 2008, 2010, 2012 and 2013 are supported. (VS2013 support was added in Composer XE 2013 SP1 Update 1.)

Open Microsoft Visual Studio from the Start menu.  Select Help > About.  Look for the following items:

  • Make sure that it does not say "Express Edition".  Visual Studio Express Edition is not supported for use with Intel Visual Fortran from within the Visual Studio development environment
  • If you are using a Standard, Professional, Ultimate or Team System Edition of Visual Studio, under Installed Products look to see if "Microsoft Visual C++" is listed. If it is not, reinstall Visual Studio and make sure that the Visual C++ component is installed.  If you are using the Microsoft Visual Studio 2005 Premier Partner Edition (included with Intel Visual Fortran 10.0, 10.1 and 11.0 - no edition name will be displayed), or Microsoft Visual Studio 2008 Shell (as supplied by Intel Visual Fortran 11.1 and 12.0), or Microsoft Visual Studio 2010 Shell (as supplied by Intel Visual Fortran Composer XE 2011 as of Update 6, or Intel Visual Fortran Composer XE 2013), Visual C++ is not required. Note that use of Visual Studio Shell from another source is not supported.
  • Look under Installed Products to see if "Intel Visual Fortran" is listed and make a note of the version number or "Package ID" displayed, if any.
  • If the Visual Fortran integration is installed and the symptom is that when you build a Fortran project no files get compiled, see Problem: Fortran Source Files Not Compiling when Building in Visual Studio.
  • Did you install a trial version of Microsoft Visual Studio and then later replace it with the Visual Studio Shell included with the Fortran product? If so, some files may be left around that prevent proper operation. To solve this, uninstall all Fortran versions, uninstall Microsoft Visual Studio Shell and the Fortran Tools and Libraries for Microsoft Visual Studio. Delete the Microsoft Visual Studio 9.0 (for VS2008) or 10.0 (VS2010) or 11.0 (VS2012) or 12.0 (VS2013) under Program Files (or Program FIles (x86). Now reinstall Fortran with the shell.

Close Visual Studio and test to see if the problem still exists.  If so, proceed to Step 2.

Step 2 - are the integration files present?

Check to see if the appropriate Intel folder is present.  The paths given here are defaults and may vary on your system:

VS2003: C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\Intel Fortran\VFPackages
VS2005: C:\Program Files (x86)\Microsoft Visual Studio 8\Intel Fortran\VFPackages
VS2008: C:\Program Files (x86)\Microsoft Visual Studio 9.0\Intel Fortran\VFPackages
VS2010: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Intel Fortran\VFPackages
VS2012: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Intel Fortran\VFPackages
VS2013: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Intel Fortran\VFPackages

On a 32-bit system, "Program Files (x86) " will be "Program Files".

Check to see if this folder contains six DLL files  Windows may hide the file type for DLL files - the file names are VFAVwin.dll, VFFortSvc.dll, VFHieEditor.dll, VFProj.dll, VFProjConvert.dll, VFToolOpt.dll.  If any of these files are not present, uninstall and reinstall Intel Visual Fortran.

NOTE: If you have Intel Visual Fortran Composer XE 2011 Update 6 or later, (compiler version 12.1), or Intel Visual Fortran Composer XE 2013 (or later), and are using VS2010 or newer, there will be only four DLLs: VFAVwin.dll, VFHieEditor.dll, VFProj.dll and VFProjConvert.dll.

Right click on VFProj.dll and select Properties, then click on the Version tab.  Look at the "File Version" displayed.  It will be in the form of 11.1.3464.2008.  The first two numbers (11.1 here) indicate the compiler version.  These must match that of the most recent version of the compiler installed.  The last number (2008 here) indicates the Visual Studio version this DLL is for.  If the compiler version does not match, uninstall Intel Visual Fortran, delete the entire "Intel Fortran" folder under the appropriate Microsoft Visual Studio folder, then reinstall Intel Fortran.

Step 3 - repair the integration

If you do not see the Intel Fortran integration in Visual Studio, or if some parts do not appear, follow the instructions below to reregister the integration DLLs. You must perform these steps for each version of Visual Studio in which the problem appears.First, open a command prompt with Administrator privileges. From the Start menu, select Accessories.  Right click on Command Prompt and select "Run as administrator". (Windows XP users can just click on Command Prompt to open the prompt window.  You can use any Command Prompt shortcut you have available.)

Visual Studio 2013

Close Visual Studio and type the following commands:

cd %VS120COMNTOOLS%
cd ..\..\Intel Fortran\VFPackages
integrate.bat "%VS120COMNTOOLS%" /u
integrate.bat "%VS120COMNTOOLS%"

Visual Studio 2012

Close Visual Studio and type the following commands:

cd %VS110COMNTOOLS%
cd ..\..\Intel Fortran\VFPackages
integrate.bat "%VS110COMNTOOLS%" /u
integrate.bat "%VS110COMNTOOLS%"

Visual Studio 2010

Close Visual Studio and type the following commands:

cd %VS100COMNTOOLS%
cd ..\..\Intel Fortran\VFPackages
integrate.bat "%VS100COMNTOOLS%" /u
integrate.bat "%VS100COMNTOOLS%"

Visual Studio 2008

Close Visual Studio and type the following commands:

cd %VS90COMNTOOLS%
cd ..\..\Intel Fortran\VFPackages
integrate.bat "%VS90COMNTOOLS%" /u
integrate.bat "%VS90COMNTOOLS%"

Visual Studio 2005

Close Visual Studio and type the following commands:

cd %VS80COMNTOOLS%
cd ..\..\Intel Fortran\VFPackages
integrate.bat "%VS80COMNTOOLS%" /ui
ntegrate.bat "%VS80COMNTOOLS%"

Visual Studio 2003

Close Visual Studio and type the following commands:

cd %VS71COMNTOOLS%
cd ..\..\Intel Fortran\VFPackages
integrate.bat "%VS71COMNTOOLS%" /u
integrate.bat "%VS71COMNTOOLS%"

Questions or Problems?

If you have questions about this article or continue to have problems, please visit Intel Visual Fortran Compiler for Windows Support for options. We recommend asking in our User Forum for the fastest assistance.

For more complete information about compiler optimizations, see our Optimization Notice.