Intel® Fortran Compiler 16.0 User and Reference Guide
From the command line: You can use the SET command at the command prompt to set environment variables.
From within a program: Call the SETENVQQ routine to set environment variables. For example:
USE IFPORT LOGICAL(4) success success = SETENVQQ("PATH=c:\mydir\tmp") success = & SETENVQQ("LIB=c:\mylib\bessel.lib;c:\math\difq.lib")
Depending on your operating system, there are additional ways to set environment variables.
Within the Bourne*/Bourne* Again shell (sh/bash), or the Korn shell (ksh), use the export command and assignment command to set an environment variable:
export FORT9 FORT9=/usr/users/smith/test.dat
To remove the association of an environment variable and its value within the Bourne*, Korn shell, or bash shells, use the unset command:
unset FORT9
Within the C shell (csh), use the setenv command to set an environment variable:
setenv FORT9 /usr/users/smith/test.dat
To remove the association of an environment variable and its value within the C shell, use the unsetenv command.
unsetenv FORT9
Environment variables specifying path, library, and include directories can be defined in Visual Studio* on a per user basis using Tools > Options ... from the menu bar. For more information, see Specifying Path Library and Include Directories.
If you specify devenv or useenv options on the command line to start the IDE, the IDE uses the PATH, INCLUDE, and LIB environment variables defined for that command line when performing a build. It uses these values instead of the values defined using Tool > Options.
For more information on the devenv command, see the Visual Studio* documentation.
During installation, the Intel® Fortran compiler may modify certain system-wide environment variables, depending on your installation choices. For more information, see the install.htm file.
To view or change these environment variable settings, do the following:
Using an account with Administrator privilege, open the Control Panel.
Select System.
Select Advanced System Settings , then click the Environment Variables button from the Advanced tab.
View or change the displayed environment variables.
To have any environment variable changes take effect immediately, click Apply.
Click OK.
Changing system-wide environment variables affects command line builds (those done without IDE involvement), but not builds done through the IDE. IDE builds are managed by the environment variables set in the IDE using Tools > Options. An exception to this is an IDE build (devenv) done from the command line that specifies the useenv option. In this case, the IDE uses the PATH, INCLUDE, and LIB environment variables defined for that command line.