When you build a C or C++ project, the IDE calls the corresponding target in the project's makefile. The IDE executes the compiler from the project's associated tool collection to compile the source files as specified by the makefile target. The IDE's Output window displays the build command output such as make messages and compiler messages.
Some of the error messages that the compiler generates are underlined. If you double-click an underlined message, the editor highlights the source code that caused the error.
You can build the main project and all of its required projects, or build any project individually.
If the tools required to build the project are not in the Tool Collection specified for the project, the Resolve Build Tools dialog box opens. Resolve the missing tools and click OK.
To build the main project and its required projects:
Choose Run > Build Main Project (F11).
The IDE displays the build output, and any build or compilation errors, in the Output window. You can click any error to go to the location in the source code where the error occurred.
To build an individual project and its required projects:
Right-click the project's node in the Projects window and choose Build Project.
The IDE displays the build output, and any build or compilation errors, in the Output window. The IDE displays a progress bar in the status area at the bottom of the main window. You can click any error to go to the location in the source code where the error occurred.
To run other targets in the makefile of a project:
To stop building a project:
See Also | |
---|---|
C and C++ Building
Tasks: Quick Reference Compiling a Single C or C++ File |