Precompiled Header Error, Official Fix?

Hello,

Yesterday I updated VS19, and now the build produces the following error:

*"precompiled header file is from a different version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)"*

A web search provides many different solutions: a symbolic link, delete Intermediate directory, change an init file, reinstall VS.

Does Epic have an official fix?

Thanks!

Fixed. I deleted the Intermediate directory (zipped for recovery), then re-generated the VS files. Now am able to compile.

Luckily I’m solo so no team to worry about.

Official guidance on this issue would be greatly appreciated.

Also, iirc, 4.20 is still using VS17. So that might have been part of the problem.

I had this problem too when updating VS 2019 from 16.8.3 to 16.8.4.

After googling I couldn’t find a way to rollback Visual Studio Community to the previous version. However, installer for previous versions of VS Enterprise and VS Professional are available. I downloaded the installer for VS Enterprise version 16.8.3, and used it to install VS Community. And that fixed it for me.

I shouldn’t have updated to 16.8.4 in the first place because the whole team is on 16.8.3. It was a big mistake.

I had this error

a) In VS, when klicking on “build”

b) When packaging from inside of the Project

a) Have been solved with cleaning and build it again

b) Have been solved with selecting “complete rebuild” inside Editor → ProjectSettings ->packaging

Kind regards
Stefan