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?