Creating your project

You need to create a project to contain your source code and related files. A project has an associated builder that can incrementally compile source files as they are changed.

To create your project:

  1. Click File > New > Project.
    The New Project Wizard opens.
  2. Select C++.
  3. Click Standard Make C++ Project.
    You can also create a managed make C++ project so that a makefile is automatically generated. For the purpose of this tutorial, you will create a standard make C++ project which requires you to provide a makefile in order to build the project.
  4. Click Next.
  5. In the Name box, type HelloWorld.
  6. Leave the Use Default Location check box selected.
    Note that the location of the workspace folder where your project is saved is grayed out in the Location box.
  7. Click Next.
  8. Click the Binary Parser tab.
  9. In the Binary Parser list, click PE Windows Parser.
  10. To ensure the accuracy of the C/C++ Projects view and the ability to successfully run and debug your programs, select the correct parser is important. After you select the correct parser for your development environment and build your project, you can view the components of the .o file in the C/C++ Projects view. You can also view the contents of the .o file in the C/C++ editor.

  11. Click Finish.
  12. If a message box prompts you to switch perspectives, click Yes.

Your new project is displayed in the C/C++ Projects view and in the Navigator view. Your project is empty because you have not yet created files for your project. You can now start writing the code for your HelloWorld program.

Tip: You can view and modify the properties of your HelloWorld project by right-clicking on the project in the C/C++ Projects view and clicking Properties.

Next: Creating your C++ file

For more information about:

Related concepts
CDT overview
CDT projects
Project file views

Related tasks
Defining project properties
Working with C/C++ project files

Related reference
C/C++ Projects view

IBM Copyright Statement