Multi-version Compiler Support

For Eclipse Executable, Shared Library, Static Library, and Makefile projects, you can select different versions of the Intel compiler to compile your Eclipse Intel project. Eclipse configurations (and the toolchain that the configuration is based on) are used to provide this support. Refer to the Release Notes for a list of the currently supported compiler versions by platform.

Select the version of the Intel compiler to build your project. You do this by selecting the configuration associated with the desired version of the compiler prior to building your project. You can create the desired configurations for the versions of the compiler that you would like to build either when you first create an Intel project, or, later, through the Manage Configurations interface within the IDE, accessible via the project's properties.

To create configurations using the Manage Configurations interface:


  1. Right click the project and select Properties. The project's property pages open.

  2. Select C/C++ Build, and then select either Settings or Tool Chain Editor.

    With Makefile projects, you can only use the Tool Chain Editor.

  3. On the Configuration line, click Manage Configurations. The Manage Configurations dialog box appears.

  4. Click New.

Within configurations, you can set distinct project properties, like compiler options, to be used with different versions of the Intel compiler and freely select and modify which version of the compiler to use by changing the active configuration. The active configuration is the configuration that is in effect when your application is built within the Eclipse IDE.

If you have multiple instances of the same major version of the compiler installed on your system (and, for an Eclipse Executable, Shared Library, or Static Library Project, a configuration with that major version is active) with different minor versions, the Eclipse IDE will, by default, use the compiler with its environment established, via execution of install-dir/bin/compilervars.*sh. If no compiler environment is established for such a project, then the most current compiler, that is, the one with the highest minor version number, will be used. For an Eclipse/CDT Makefile Project, the compiler environment must be established to enable successful invocation of the compiler, by default.

Note also, that for any project, you can set the compiler environment by specifying it within Eclipse. This compiler specification overrides any specification established outside of Eclipse.


Submit feedback on this help topic

Copyright © 1996-2011, Intel Corporation. All rights reserved.