Creating a project
You can create a standard make or managed make C or C++ project.
To create a project:
1. Click File > New > Project.
2. In the New Project wizard, click C or C++.
3. Choose either a Standard Make C++ Project or a Managed Make C++ Project.
How to bring C/C++ source files into Eclipse
A common scenario that you may encounter when starting to use the CDT, is determining how to bring
existing C/C++ source files into Eclipse. There are a number of ways to do this. The scenarios described
below are recommended approaches.
Create a project from CVS
If your existing source tree is managed in CVS, you can use the CVS Repository perspective to
"Checkout As..." any folder in the repository. The first time you "Checkout As...", the New Project
wizard is launched and you need to create a C or C++ project for the folder. For more information, see
Creating a project and Working with C/C++ project files.
A CVS checkout of the project into the project's location occurs. It is recommended that you eventually
add and commit the CDT project files back into CVS. The CDT project files include .project, .cdtproject
and .cdtbuild (for Managed Build projects) and are located at the root folder of each CDT project.
Create new projects from existing source roots
If your resource code is not managed in CVS but is available from the file system, then you need to
perform two steps:
1. Identify a "root folder" of your source code tree.
2. Create a new C/C++ project using the New Project Wizard, and specify the "root folder" as a non-
default location of the new project.
Typically existing projects will have their own makefiles, so you should create a new Standard Make C/
C++ project. For more information see Creating a project and Working with C/C++ project files.
To help you to identify a root folder for your project, consider the following guidelines:
● all source code for the project is available on or beneath the root folder
● the build results are also produced in or beneath the root folder