If Eclipse and the CDT are installed on your system, follow these steps to use the Intel® C++ Compiler with Eclipse:
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:
Be sure the LANG environment variable is set correctly:
export LANG=en_US
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.
Open the Product Configuration page by selecting Help > Software Updates > Manage Configuration
Under Available Tasks, select Add An Extension Location. A directory browser will open.
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.
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.