Starting Eclipse

If Eclipse and the CDT are installed on your system, follow these steps to use the Intel® C++ Compiler with Eclipse:


  1. Initialize the compiler environment by setting environment variables. You can do this by executing iccvars.sh (or iccvars.csh) with the 'source' command. For example, for a root installation to the default directory:
    source /opt/intel/Compiler/version_number/package_id/bin/iccvars.sh <arg>


    The script takes an argument specifying architecture:

    • ia32: Compiler and libraries for IA-32 architectures only

    • intel64: Compiler and libraries for Intel® 64 architectures only

    • ia64: Compiler and libraries for IA-64 architectures only

  2. Be sure the LANG environment variable is set correctly:
    export LANG=en_US

  3. Start Eclipse and indicate the JRE, for example:
    <eclipse-install-dir>/eclipse/eclipse -vm <jre-install-dir>/jrockit-R26.4.0-jre1.5.0_06/bin/java -vmargs -Xmx256m

To add the Intel C++ Compiler product extension to your Eclipse configuration, follow these steps from within Eclipse.


  1. Open the Product Configuration page by selecting Help > Software Updates > Manage Configuration

  2. Under Available Tasks, select Add An Extension Location. A directory browser will open.

  3. Browse to the appropriate Eclipse directory; Intel integrations are provided for CDT version 5.0 so the directory path is: /opt/intel/Compiler/version_number/package_id/eclipse_support/cdt5.0/eclipse.

  4. When asked to restart Eclipse, select Yes. When Eclipse restarts, you will be able to create and work with CDT projects that use the Intel C++ compiler.

If you also installed the Intel Debugger (idb) product extension along with the idb Eclipse product extension and would like to use idb within Eclipse, you should add the idb product extension site to your Eclipse configuration in the same way. For example, if you installed idb as root to the default directory, the idb Eclipse product extension site will be located at /opt/intel/Compiler/version_number/package_id/idb/eclipse_support/cdt5.0/eclipse.