Specifying the Location of Compiler Components with
Before you invoke the compiler, you may need to set certain environment variables that define the location of compiler-related components.
C++Compiler includes compilervars scripts to set environment variables:
- On Linux*andthe file is a shell script called,macOS*.compilervars.shorcompilervars.csh
- On Windows*, the file is a batch file calledcompilervars.bat.The batch fileiclvars.batis provided for compatibility.
The following information is operating system dependent.
IA-32 architecture is no longer supported on
Set the environment variables before using the compiler by sourcing the shell script
. Depending on the shell, you can use the
sourcecommand or a
.(dot) to source the shell script, according to the following rule
- : Use the.cshscriptsourcecommand.
- Bash: Use either thesourcecommand or