C and C++ Project Tasks: Quick Reference

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
  1. Choose File and choose New Project (Ctrl-Shift-N).
  2. Select the right template for your project.
Set up compilation dependencies between application and library projects.
  1. In the Projects window, right-click the project node and choose Properties.
  2. Select the Linker node.
  3. In the Project Properties panel, click the Libraries browse button.
  4. 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
  1. In the Projects window, right-click the project node and choose Properties.
  2. Select the Required Projects node.
  3. In the Project Properties panel, click the Required Projects browse button.
  4. 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 and choose  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 and choose 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.

Legal Notices