Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Multiversion Compiler Support

You can select different versions of the Intel® oneAPI DPC++/C++ Compiler for compiling projects with the Eclipse Integrated Development Environment (IDE). For a list of the currently supported compiler versions by platform, refer to the Release Notes.

If multiple versions of the compiler are installed on the system, Eclipse uses the latest version by default. To select the version of the compiler to build your project:

  1. Right click the project and open Properties.

  2. In the properties dialog box, select C/C++ Build > Settings.

  3. Select the Intel(R) oneAPI DPC++ Compiler for a DPC++ project, or the Intel® C++ Compiler for a C++ project tab.

  4. Select the row with the desired compiler version.

  5. Click Use Selected. Alternatively, click Use Latest to select the latest version of compiler.

  6. Click Apply.

The corresponding compiler environment is configured automatically for your project.

Use Settings and Tool Chain Editor to select tools to be used within the toolchain, or set distinct project properties, like compiler options, to be used with different versions of the compiler.

For any project, you can set the compiler environment by specifying it within Eclipse; this overrides any other environment specifications for the compiler.