C ++ compiles all files with error spawning c1.exe. No matter what file compilation is, errors are reported: Error spawning c1.exe 1 error, 0 warning.
You may have copied your VC from another computer, rather than directly installing it. You need to reset it based on the configured compiler path.
Solution: Tools-> options-> directories: Show directories for select excutable files. Check whether your cl.exe file is in the directory. If not, modify the directory. Details
Select Options in tools on the menu bar, and select directories in the displayed dialog box ), in the show directories for :) drop-down list on the right, select executable. The path must include at least seven of the following:
D: \ Program Files \ Microsoft Visual Studio \ common \ msdev98 \ bin
D: \ Program Files \ Microsoft Visual Studio \ vc98 \ bin
D: \ Program Files \ Microsoft Visual Studio \ common \ tools
D: \ Program Files \ Microsoft Visual Studio \ common \ tools \ winnt
C: \ windows \ system32
C: \ WINDOWS
C: \ windows \ system32 \ WBEM
In the include files option, the path contains at least three items:
D: \ Program Files \ Microsoft Visual Studio \ vc98 \ include
D: \ Program Files \ Microsoft Visual Studio \ vc98 \ MFC \ include
D: \ Program Files \ Microsoft Visual Studio \ vc98 \ ATL \ include
The path in the library files option contains at least two items:
D: \ Program Files \ Microsoft Visual Studio \ vc98 \ Lib
D: \ Program Files \ Microsoft Visual Studio \ vc98 \ MFC \ Lib
In the source files option, the path contains at least four of the following items:
D: \ Program Files \ Microsoft Visual Studio \ vc98 \ MFC \ SRC
D: \ Program Files \ Microsoft Visual Studio \ vc98 \ MFC \ include
D: \ Program Files \ Microsoft Visual Studio \ vc98 \ ATL \ include
D: \ Program Files \ Microsoft Visual Studio \ vc98 \ CRT \ SRC