Developer Guide and Reference

Contents

Invoking the Intel®
C++ Compiler

Requirements Before Using the Command Line

You may need to set certain environment variables before using the command line. For more information, see .
macOS*
:
Alternatively, you can invoke the compiler with the commands described below using symbolic links in
/usr/local/bin
.

Using the Intel®
C++ Compiler
from the Command Line

You can invoke the compiler using the
icc
or
icpc
command.
You can also use the compiler from within the IDE.
For more information on using Microsoft Visual Studio*, see Using Microsoft Visual Studio .
For information on using Xcode*, see Using Xcode .
For information on using Eclipse*, see Using Eclipse .
Linux*:
Invoke the compiler using
icc
/
icpc
to compile C/C++
source files.
  • When you invoke the compiler with
    icc
    the compiler builds C source files using C libraries and C include files. If you use
    icc
    with a C++ source file, it is compiled as a C++ file. Use
    icc
    to link C object files.
  • When you invoke the compiler with
    icpc
    the compiler builds C++ source files using C++ libraries and C++ include files. If you use
    icpc
    with a C source file, it is compiled as a C++ file. Use