When the project build fails, the Project Explorer displays the
“error” sign over the project's root folder and over the folders and files where the
issues were detected. The Problems view reports about the issues that
have caused the build failure:
Click an entry in the Problems view. If the issue is detected in code,
the editor area displays the problem file and marks the line of code where the error is found.
Besides the syntax errors, build failures can be caused by invalid
characters in the resolved paths. Such errors are reported without a particular location. If
you get such an error in the
Problems view, make sure that all of your
variables hold paths with only ASCII characters ('A-Z', 'a-z'), digits ('0-9'), underscores
('_'), dash characters ('-'), periods ('.'), and slash characters ('/').
Note: Backslash ('\')
is not allowed in paths.
Find an example of such an error in
Building projects in
non-English versions of Windows.
Build failures with multiple unresolved symbols in code can be caused by the incorrect C/C++
indexer settings. Find the details in Adjusting the C/C++ indexer settings for large files.
If system generates any warnings, you can also see them in the
Problems view. You can use the
Quick Fix
option if possible:
- Right-click an error message and select Quick Fix option
from the context menu,
- Select errors to fix,
- Click Finish.
After resolving all build issues, right-click the project in the Project
Explorer and click Clean Project on the context menu.