Getting Started with the Intel® C++ Compiler for Linux*

Document number: 307056-009US

The Intel® C++ Compiler 9.1 compiles C and C++ source files on Linux* systems. The compiler is supported on IA-32, Intel® EM64T systems, and Intel® Itanium®-based systems.

You can run the Intel C++ Compiler from the command line or within the Eclipse* integrated development environment. Eclipse is supported on IA-32 and Itanium-based systems.

The default root installation path for the Intel C++ Compiler is /opt/intel/cc/9.1.xxx, where xxx represents a 3-digit build number. On Intel EM64T systems, the path is /opt/intel/cce/9.1.xxx. The term <install-dir> is used in the documentation to refer to this default installation path.

Locating the Documentation

The compiler documentation is installed under <install-dir>/doc/. See the Documentation Index (Doc_Index.htm) for a short description of each documentation component.

Using the Compiler on the Command Line

You must "source" the compiler environment script, iccvars.sh (or iccvars.csh), to set the environment variables prior to invoking the compiler:

source /opt/intel/cc/9.1.xxx/bin/iccvars.sh

To compile a C language source file (for example, my_source_file.c), use the following command:

icc my_source_file.c

To compile C++ source files, use this command:

icpc my_source_file.cpp

Following successful compilation, an executable named a.out is created in the current directory.

The Intel compiler also includes man pages. After sourcing the environment script, open the man page to view a complete list of compiler options:

man icc

You can read a summary of compiler options from the command line by invoking the compiler with the -help option:

icc -help

Using the Compiler with Eclipse

If you installed the Eclipse integrated development environment with the Intel compiler, you should "source" iccvars.sh (or iccvars.csh), then run the iccec script to open Eclipse:

source /opt/intel/cc/9.1.xxx/bin/iccvars.sh
iccec

See the Building Applications section in the compiler documentation for more information about using the compiler with Eclipse.


Disclaimer and Legal Information

INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL® PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER, AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. Intel products are not intended for use in medical, life saving, life sustaining, critical control or safety systems, or in nuclear facility applications.
Intel may make changes to specifications and product descriptions at any time, without notice.

The software described in this document may contain software defects which may cause the product to deviate from published specifications. Current characterized software defects are available on request.

This document as well as the software described in it is furnished under license and may only be used or copied in accordance with the terms of the license. The information in this manual is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Intel Corporation. Intel Corporation assumes no responsibility or liability for any errors or inaccuracies that may appear in this document or any software that may be provided in association with this document.

Except as permitted by such license, no part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or by any means without the express written consent of Intel Corporation.

Developers must not rely on the absence or characteristics of any features or instructions marked "reserved" or "undefined." Improper use of reserved or undefined features or instructions may cause unpredictable behavior or failure in developer's software code when running on an Intel processor. Intel reserves these features or instructions for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from their unauthorized use.

BunnyPeople, Celeron, Celeron Inside, Centrino, Centrino logo, Chips, Core Inside, Dialogic, EtherExpress, ETOX, FlashFile, i386, i486, i960, iCOMP, InstantIP, Intel, Intel logo, Intel386, Intel486, Intel740, IntelDX2, IntelDX4, IntelSX2, Intel Core, Intel Inside, Intel Inside logo, Intel. Leap ahead., Intel. Leap ahead. logo, Intel NetBurst, Intel NetMerge, Intel NetStructure, Intel SingleDriver, Intel SpeedStep, Intel StrataFlash, Intel Viiv, Intel XScale, IPLink, Itanium, Itanium Inside, MCS, MMX, MMX logo, Optimizer logo, OverDrive, Paragon, PDCharm, Pentium, Pentium II Xeon, Pentium III Xeon, Performance at Your Command, Pentium Inside, skoool, Sound Mark, The Computer Inside., The Journey Inside, VTune, Xeon, Xeon Inside and Xircom are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.

Copyright (C) 1996-2006, Intel Corporation.