The Intel® C++ Compiler XE 12.0 for Linux* OS compiles C and C++ source files on Linux* operating systems. The compiler is supported on IA-32 and Intel® 64 architectures.
Start using the compiler by performing the following steps:
Open a terminal session.
Set the environment variables for the compiler.
Invoke the compiler.
One way to set the environment variables prior to invoking the compiler is to "source" the compiler environment script, compilervars.sh (or compilervars.csh):
source <install-dir>/bin/compilervars.sh <arg>
where <install-dir> is the directory structure containing the compiler /bin directory, and <arg> is the architecture argument listed below.
The environment script takes an argument based on architecture. Valid arguments are as follows:
ia32: Compilers and libraries for IA-32 architectures only
intel64: Compilers and libraries for Intel® 64 architectures only
To compile C source files, use a command similar to the following:
icc my_source_file.c
To compile C++ source files, use a command similar to the following:
icpc my_source_file.cpp
Following successful compilation, an executable is created in the current directory.
Starting the Compiler in Eclipse*
You must first install and configure Eclipse on your system, then you can configure Eclipse to use the Intel® C++ Compiler XE 12.0.
See the Building Applications section in the compiler documentation for current information about compiling applications with Eclipse*. The Building Applications with Eclipse* section provides detailed information about configuring and using Eclipse with the Intel® C/C++ Compilers.
Copyright © 2010, Intel Corporation. All rights reserved.