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. 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 Related Projects node.
- In the Project Properties panel, click the Related 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.
Click OK in the Projects dialog box, then click OK in the Project Properties
dialog box.
|
Open required projects.
|
-
In the Projects window, right-click the project node and choose
Open Required Projects.
|
Build a project.
|
-
Select the project and choose Run
Build 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.
|
- Select a project and choose Run
Run Project (F6) or right-click any project
node and choose Run Project.
|
Set the main project.
|
-
When the project is open, choose Run > Set Main Project > projectname.
|
Debug a project.
|
- Select a project and choose Debug > Debug Project (F5) or right-click any
project and choose Debug Project.
|