Compile Error Switching to 4.12

Getting a strange compile error when I moved over to 4.12 from 4.11. Engine is compiled from latest github release source.

29>EXEC : error : All source files in module "PacketHandler" must include the same precompiled header first.  Currently "C:\Program Files\UnrealEngine\Engine\Source\Runtime\PacketHandlers\PacketHandler\Private\PacketHandlerPCH.h" is included by most of the source files.  The following source files are not including "C:\Program Files\UnrealEngine\Engine\Source\Runtime\PacketHandlers\PacketHandler\Private\PacketHandlerPCH.h" as their first include:
29>
29>  C:\Program Files\UnrealEngine\Engine\Source\Runtime\PacketHandlers\PacketHandler\Private\PacketHandler.cpp (including C:\Program Files\UnrealEngine\Engine\Source\Runtime\PacketHandlers\PacketHandler\Public\PacketHandler.h)
29>
29>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3075: The command ""C:\Program Files\UnrealEngine\Engine\Build\BatchFiles\Build.bat" IrisEditor Win64 Development "C:\Users\itchr\Dropbox\Project Iris\Engine\Iris.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.

Any ideas what would cause this? It doesn’t happen on a fresh project, so it must be something that I’m doing wrong. But I don’t know how to track it down!

Also that is the only error I get, no more information. Is there a more detailed log kept somewhere?

That’s a strange error, because PacketHandler.cpp definitely does include PacketHandlerPCH.h first. Have you tried a clean and rebuild?

Funny enough, that seems to have worked :stuck_out_tongue:

Thanks!

Do a “ReBuild” on your project. Or “Clean” and then a “Build”