C/C++ Build Errors

The articles in this section of the documentation explain diagnostic error and warning messages that are generated by the build tools.

The Visual Studio compilers and build tools can report many kinds of errors and warnings. After an error or warning is found, the build tools may make assumptions about code intent and attempt to continue, so that more issues can be reported at the same time. If the tools make the wrong assumption, later errors or warnings may not apply to your project. When you correct issues in your project, always start with the first error or warning that's reported, and rebuild often. One fix may make many subsequent errors go away.

To get help on a particular diagnostic message in Visual Studio, select it in the Output window and press the F1 key to open the documentation page for that error, if one exists. You can also use the search tool above to find articles about specific errors or warnings, or browse the list of errors and warnings by tool and type in the navigation pane.

Note

Not every Visual Studio error or warning is documented. In many cases, the diagnostic message provides all of the information that's available. If you landed on this page when you used F1 and you think the error or warning message needs additional explanation, let us know. You can use the feedback form on this page, add a comment in the comments section, or raise an issue on GitHub. You can also send feedback and enter bugs in the IDE. In Visual Studio, go to the menu bar and choose Help > Send Feedback > Report a Problem, or submit a suggestion by using Help > Send Feedback > Send a Suggestion.

You may find additional assistance for errors and warnings in Microsoft's public forums. You can search for the error or warning number on the Developer Community site. You may also search for errors and warnings and ask questions on Stack Overflow to find solutions.

For links to additional help and community resources, see Visual C++ Help and Community.

See also

C/C++ Building Reference
Debugging in Visual Studio