Developer Guide and Reference

Contents

Creating a New Project

To create a new Eclipse* project:
  1. Select
    File
    New
    Project...
    The
    New Project
    wizard opens.
  2. Expand the
    C/C++ Project
    tab and select the appropriate project type. Click
    Next
    to continue.
  3. For
    Project name
    , enter
    hello_world
    . Deselect the
    Use default location
    to specify a directory for the new project.
  4. In the
    Project Type
    list, expand the
    Executable
    project type and select
    Hello World C++ Project
    for C++ or
    Hello World DPC++ Project
    for DPC++.
  5. In the
    Toolchains
    list, select
    Intel(R) oneAPI DPC++ Compiler
    for a DPC++ project, or the
    Intel C++ Compiler
    for a C++ project
    . Click
    Next
    .
    • If you need to see the toolchains for the compilers that are not locally installed, uncheck
      Show project types and toolchains only if they are supported on the platform
      . You are only able to view and configure these toolchains if the proper compilers are installed.
    • If you have multiple versions of the compiler installed, they appear in the project’s properties under
      C/C++ Build
      Settings
      on the
      Intel(R) oneAPI DPC++ Compiler
      tab for a DPC++ project, or the
      Intel C++ Compiler
      tab for a C++ project
      .
  6. The
    Basic Settings
    page allows specifying template information, including
    Author
    and
    Copyright notice
    , which appear as a comment at the top of the generated source file. After entering desired fields, click
    Next
    .
  7. The
    Select Configurations
    page allows specifying deployment platforms and configurations. By default, a
    Debug
    and
    Release
    configuration is created for the selected toolchain. Select no (
    Deselect all
    ), multiple, or all (
    Select all
    ) configurations. To edit project properties, click the
    Advanced settings
    button. Click
    Finish
    to create the
    hello_world
    project.
    Configurations can be created after the project is created by selecting
    Project
    Properties
    .
  8. If the view is not the
    C/C++ Development Perspective
    (default), an
    Open Associated Perspective
    dialog box opens. In the
    C/C++ Perspective
    , click
    Yes
    to proceed.
An entry for your
hello_world
project appears in the
Project Explorer
view.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.