Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Specify Path, Library, and Include Directories

You can specify directories that the Microsoft Visual Studio* project system should search for certain types of files.

To set path, library, and include directories for your Intel® Fortran project environment on a particular machine:

  1. Select Tools > Options.
  2. In the left pane, select Intel Compilers and Libraries > IFORT Intel Fortran Classic > Compilers for ifort or Intel Compilers and Libraries > IFX Intel Fortran > Compilers for ifx.
  3. In the right pane, specify directories where the Microsoft Visual Studio* project system should look for files:
    • Executables: The directories to be searched for executable files. (Works like the PATH environment variable.)
    • Libraries: The directories to be searched for libraries. (Works like the LIB environment variable.)
    • Includes: The directories to be searched for include files. (Works like the INCLUDE environment variable.) You can use macros like $(VSInstallDir) in directory names. For list of supported macros, see Supported Build Macros.
  4. Click OK.

Use the Reset buttons to restore original installation settings for Executables, Libraries, and Includes fields. Reset restores initial settings for the currently selected compiler.

NOTE:
If you specify devenv or useenv on the command line to start the IDE, the IDE uses the PATH, INCLUDE, and LIB environment variables as defined for that command line when performing a build. It uses these values instead of the values defined in Tools > Options.

For more information on the devenv command, see the devenv description in the Microsoft Visual Studio* documentation.

For more information on environment variables, see Supported Environment Variables.