How can I resolve Error 2 error : UnrealHeaderTool failed for target?

Hey there,

So I’ve been incrementally moving code across from the ShooterGame example project to my own project when I started getting this error every time I built:

Error 2 error : UnrealHeaderTool failed for target ‘ValkyrieEditor’ (platform: Win64, module info: F:\Valkyrie\Intermediate\Build\Win64\ValkyrieEditor\DebugGame\UnrealHeaderTool.manifest). F:\Valkyrie\Intermediate\ProjectFiles\EXEC Valkyrie

I tried reverting the changes I made but unless I missed anything I don’t think it’s made a difference. I’ve noticed people have been getting this error when building the source code from github. However I’ve just been using the version provided by the installer. I verified my install and it didn’t pick up on anything wrong there.

Has anyone encountered this before?

Cheers

Same problem, really frustrating. Anyone?

Ok I think I’ve found the issue. In the shooter game project the Character needs to include the Weapon header file and the Weapon needs to include the Character header file. It created a circular dependency in the headers and I think if one doesn’t compile correctly then it creates the error but doesn’t tell you what line of code is wrong. Mine was compiling fine like this until something along the line went wrong.