Developer Guide and Reference

Contents

Specifying the Location of Compiler Components with
compilervars

Before you invoke the compiler, you may need to set certain environment variables that define the location of compiler-related components.
The Intel®
C++
Compiler includes compilervars scripts to set environment variables:
  • On Linux*
    and
    macOS*
    ,
    the file is a shell script called
    compilervars.sh
    or
    compilervars.csh
    .
  • On Windows*, the file is a batch file called
    compilervars.bat
    .
    The batch file
    iclvars.bat
    is provided for compatibility.
The following information is operating system dependent.
IA-32 architecture is no longer supported on
macOS*
.

Linux
and
macOS*
:

Set the environment variables before using the compiler by sourcing the shell script
compilervars.sh
or
compilervars.csh
. Depending on the shell, you can use the
source
command or a
.
(dot) to source the shell script, according to the following rule
s
:
  • .csh
    script
    : Use the
    source
    command.
  • .sh
    script
    :
    • Bash: Use either the
      source
      command or