Updating a Project to Use the Intel® C++ Compiler

The following topic applies to Eclipse* for C/C++.

Updating a GCC* Project to Use the Intel® C++ compiler

You can update a GCC* Project to use the Intel® C++ Compiler while preserving GCC* options and other settings in the original project. After updating the project, you can use the Project Update menu to choose between the Intel® C++ compiler and GCC* compiler.

To update an existing GCC* project to use Intel® C++ Compiler, start Eclipse* and follow these steps:

  1. Open the desired GCC* project and select it.
  2. Select Intel Tools > Update Projects > Use Intel® C++ Compiler.
  3. The Project Update dialog box appears:

    • Select or deselect the configurations to update using the checkbox at the beginning of each row. Use Select All or Deselect All to select or deselect all configurations.
    • By default, CDT saves the original configuration after the update. To disable this behavior, uncheck the Keep checkbox.
    • Rename the new configuration by clicking it in the New Intel Configuration column. The Overwrite field indicates whether a configuration with that same name already exists and whether the existing configuration will be overwritten by the update. If the named configuration does not exist, the field displays and error (). If the named configuration exists, the field displays a checkmark (). Unchecking the box results in a message warning for any conflicts.
    • To get brief tooltips, place the cursor on column headers.
    • If multiple versions of the Intel® C++ Compiler are installed, click Next to select a compiler for use with the new configuration. By default, the most recent Intel® C++ Compiler is used.

When a project is successfully updated, the menu item Use GCC appears under Intel Tools > Update Projects.

Updating an Existing Intel® C++ compiler project

Existing Intel® C++ compiler project settings can be updated to use the current version of the compiler. When the compiler updates, Tools options and other settings are preserved.

To update an older project to use the current compiler, do the following:

  1. Open the project.

  2. Select Intel Tools > Update Project > Update to the Latest Intel® C++ Compiler .

  3. The Project Update dialog box appears.

    • Select or deselect the configurations to update using the checkbox at the beginning of each row. Use Select All or Deselect All to select or deselect all configurations.
    • By default, CDT saves the original configuration after the update. To disable this behavior, uncheck the Keep checkbox.
    • Rename the new configuration by clicking it in the New Intel Configuration column. The Overwrite field indicates whether a configuration with that same name already exists and whether the existing configuration will be overwritten by the update. If the named configuration does not exist, the field displays . If the named configuration exists, the field displays a checkmark . Unchecking this box will result in a message warning of any conflicts.
    • To get brief tips, place the cursor on column headers.
    • If multiple versions of the Intel® C++ Compiler are installed, click Next to select the compiler for the new configuration. By default, the most recent Intel® C++ Compiler is used.

  4. Click Finish . A confirmation box indicates success.

The .cproject file is a hidden file used to keep project information. When updating a project, the original .cproject file is backed up and a log file is created in the Eclipse* project directory.

Switching Between Compilers

When the Use GCC or Use Intel® C++ Compiler menu items are selected, CDT prompts for active configuration selection. Choose the configuration and click OK.

For more complete information about compiler optimizations, see our Optimization Notice.