Search
Support & Downloads
All of Support
This Category
This Product
Software Products
Intel® C++ Compiler for Windows*
Invoking the compiler from the command line

Follow these steps to invoke the Intel® C/C++ Compiler from the command line:

  1. Open a command prompt from the Windows* Start menu:
    Intel(R) Software Development Tools » Intel(R) C++ Compiler... » C++ Build Environment...

    To build from a regular DOS command prompt you will need to set the Compiler’s build environment variables first. You can set the build environment by executing the “iclvars.bat” which is located in the [intelc-install-dir]\[IA32|EM64T|IA64]\Bin directory in the Compiler’s installation directory tree.

  2. Invoke the compiler as follows:
    icl /c [options... ] inputfile(s) [ /link link_options ]

    icl will always use the options set in icl.cfg. “icl.cfg” is located in the same directory as “iclvars.bat”.

  3. Invoke the linker as follow:
    xilink [options... ] inputfile(s)

    Example:
    > icl /c /O2 hello.c
    > xilink hello.obj

This applies to:
Intel® C++ Compiler for Windows*

Solution ID: CS-025880
Date Created: 12-Apr-2007
Last Modified: 05-Jun-2007
Back to Top