The VC prompts "Fatal error c1085: cannot write precompiled header file: 'debug/xxx. pch': The para

Source: Internet
Author: User

 

After a previous VC project is run, the following occurs after compilation:

Fatal error c1085: cannot write precompiled header file: 'debug/xxx. pch': the parameter is incorrect

This error was found on the Internet.

 

I am running a virtual machine, and then running the VC in the Virtual Machine and compiling the project. This is no error, but in order to save the hard disk space in the virtual machine, I will map a directory in my main system to a partition in the virtual machine, and then put the project in the mapped partition. In this way, the above error occurs during compilation.

 

The solution is to open the project option, select C/C ++ ---> pre-compiled header file, and change this option to a location in the virtual system, I changed it to C:/PCH/$ (targetname ). PCH

In this way, the compilation will be fine.

 

Why does this error occur when you compile the mapped partitions?

 

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.