This topic describes common tasks you can perform with C and C++ projects. For more
detailed information, click the links in the right column.
To perform this task |
Follow these steps |
Create a project
|
-
Choose File
New Project (Ctrl-Shift-N).
-
Select the right template for your project.
|
Set up compilation dependencies between application and library projects.
|
-
In the Projects window, right-click the project node and choose Properties.
-
Select the Linker node.
- In the Project Properties panel, click the Libraries browse button.
- In the Libraries dialog box, click Add Project and select the library project on which your
Application project depends. Click Add Project. If you do not want the project to be built every time the
dependent project is built, select the Build checkbox to remove the check mark.
|
Set up dependencies for projects from existing code
|
-
In the Projects window, right-click the project node and choose Properties.
- Select the Required Projects node.
- In the Project Properties panel, click the Required Projects browse button.
- In the Projects dialog box, click Add and select
the project on which the project from existing code depends. Click
Add Project. If you want the project to be built every time the
dependent project is built, select the Build checkbox to add a check mark.
|
Open required projects.
|
-
In the Projects window, right-click the project node and choose
Open Required Projects.
|
Build a project.
|
-
Choose Run
Build Main Project (F11) or right-click any project node
and choose Build Project.
|
Clean a project.
|
-
Right-click the project node and choose Clean Project.
|
Run a project.
|
- Choose Run
Run Main Project (F6) or right-click any project
node and choose Run Project.
|
Set the main project.
|
-
Right-click the project node and choose Set Main Project.
|
Debug a project.
|
- Choose Debug > Debug Main Project (F5) or right-click any
project and choose Debug Project.
|