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 executing iccvars.sh (or iccvars.csh) with the 'source' command:

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

  2. If you want to use the Intel Debugger with Eclipse, you will need to execute idbvars.sh (or idbvars.csh):

    source /opt/intel/idb/10.0.xxx/bin/idbvars.sh
     

  3. Be sure the LANG environment variable is set correctly:

    export LANG=en_US

     

  4. 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 select the Eclipse directory in your Intel C++ compiler installation.  For example, if you installed the compiler as root to the default directory, you would browse to /opt/intel/cc/10.0.xxx/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/idb/10.0.xxx/eclipse.