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/11.0/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
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 select the appropriate Eclipse directory for the version of CDT you want to integrate with. Intel integrations are provided for CDT versions 4.0 and 5.0. For example, if you installed the compiler as root to the default directory and want to integrate with CDT version 4.0, browse to /opt/intel/Compiler/11.0/package_id/eclipse_support/cdt4.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/11.0/package_id/idb/eclipse_support/cdt4.0/eclipse.