Does anyone encounter this error when compiling in C++?
Fatal Error C1382: the PCH file 'file' has been rebuilt since 'obj' was generated. Please rebuild this object
I google the solution and msdn suggested me to have to do two things:
When using /LTCG, the compiler detected a .pch file that is newer than a CIL .obj that points to it. The information in the CIL .obj file is out of date. Rebuild the object.
C1382 can also occur if you compile with /Yc, but also pass multiple source code files to the compiler. To resolve, do not use /Yc when passing multiple source code files to the compiler.
I did option 1 but the compiler turn it on by itself.
For option 2, how do I know if I am pass multiple souce code files to the compiler?
I cannot turn off the /Yc option as all other projects in my work application turned on /Yc option...only my project has this problem.
Does anyone know a better solution?
Thanks!
Just rebuild the entire solution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With