[USER=“434”]BrUnO XaVIeR[/USER] it worked fine previously with UE4.21.1 1 week ago. Only VS was updated, now reinstalling, maybe something went wrong with update and a fresh install could help, no other ideas, really…
Problem solved, imo no full reinstall needed, just modify VS installation, and keep only the latest Win10 SDK (uncheck old version, apparently UE4 uses it for pch creation somehow, but the latest for everything else, but I’m not a pro, just guessing)
I can confirm the solution to only have the latest Windows 10 SDK checked in the Visual Studio Installer worked for me.
I feel better information to the developer is needed. The information provided by the error is misleading: "**precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)". In this particular case, Visual Studio is updated, and for some reason, Unreal can compile projects the same, but cannot continue to package plugins, even a simple templated plugin with no changes to the original auto-created code.
Thank you, this fixed the same error for me :)! I didn’t delete Saved, because in my case, that gave me an error when right-clicking .uproject, Generate Visual Studio Project Files.
After that, in visual studio 2017, I right-clicked the game project, Set as Startup Project, Ctrl+F5, Packaged from the editor and it worked :D!