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. 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 Related Projects node.
  3. In the Project Properties panel, click the Related 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. 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 and choose  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 and choose 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.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.