Error spawning c1.exe during compilation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.