When you build a C or C++ project, the IDE calls the corresponding target in the project's makefile. The IDE compiles the source files and generates the build output, such as make messages and compiler messages in the Output window.
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 compiler collection specified for the project, the Resolve Missing Native Build Tools dialog box opens. Resolve the missing tools and click OK.
To build the main project and its required projects:
Choose Build > 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. You can click any error to go to the location in the source code where the error occurred.
To stop building a project:
See Also | |
---|---|
C and C++ Building Tasks: Quick Reference Compiling a Single C or C++ File |