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 a project:
When you create a new project, you are required to specify the project type. This project type will determine the toolchain, data, and tabs that the CDT uses/displays.
The C++ Project wizard opens. Click here to see an illustration.
By default, the CDT filters the Toolchain and Project types that currently display in those lists are based on the language support for the C++ Project wizard you selected for this tutorial.
Next, you want to select the type of project to create. In the New CDT Project Wizard, you can choose from the following project types:
After you select a template, the result is a project with only the meta-data files required for the project type. You are expected to modify these source files, as required, and provide source files for the project's target.
The makefile for the Executable project type is automatically created by the CDT.
By default, the CDT filters the Toolchain and Project types that currently display in those lists based on the language support for the C++ Project wizard you selected for this tutorial.
A toolchain is a set of tools (such as a compiler, linker, and assembler) intended to build your project.
Additional tools, such as a debugger, can be associated with a toolchain.
There can be several toolchains available, depending on the compilers installed on your system.
Click here to see an illustration.
To ensure the accuracy of the C/C++ Projects view and the ability to successfully run and debug your programs, selecting 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.
Your new project displays 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.
For more information about:
CDT overview
CDT projects
Project file views
Working with C/C++ project files