I am using Visual C ++ 2012 with a project that heavily uses precompiled headers. So hard that the infamous / Zm is used .
When I cancel an assembly, I sometimes get this error in the following assembly:
error C1852: 'foo.pch' is not a valid precompiled header file
Nine times out of ten, everything will go smoothly, but when that happens, I have to find .pch and remove it manually before restarting the build.
It annoys me a little. Is there any way to prevent this? Patch from Microsoft? Or is there a way to force Visual to remove .pch and automatically restart the assembly when a problem occurs? Or some other solution that I did not think about?
EDIT: here's the version of Visual I am running:
Microsoft Visual Studio Professional 2012 Version 11.0.61030.00 Update 4
c ++ visual-c ++ pch visual-c ++ - 2012
Laurent couvidou
source share