Unreal Header Tool doesn't work properly

Exact version : 4.9

Error output:
1>------ Build started: Project: CGrenadeLauncher, Configuration: Development_Editor x64 ------
1> Creating makefile for CGrenadeLauncherEditor (no existing makefile)
1> Performing full C++ include scan (no include cache file)
1> Parsing headers for CGrenadeLauncherEditor
1> Running UnrealHeaderTool “E:\UE_Projects\CGrenadeLauncher\CGrenadeLauncher.uproject” “E:\UE_Projects\CGrenadeLauncher\Intermediate\Build\Win64\CGrenadeLauncherEditor\Development\UnrealHeaderTool.manifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -rocket -installed
1> E:/UE_Projects/CGrenadeLauncher/Source/CGrenadeLauncher/CGrenadeLauncherCharacter.h(41) : Class ‘ACGrenadeLauncherProjectile’ not found.
1>Error : Failed to generate code for CGrenadeLauncherEditor - error code: OtherCompilationError (5)
1> UnrealHeaderTool failed for target ‘CGrenadeLauncherEditor’ (platform: Win64, module info: E:\UE_Projects\CGrenadeLauncher\Intermediate\Build\Win64\CGrenadeLauncherEditor\Development\UnrealHeaderTool.manifest).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ““C:\Program Files\Epic Games\4.9\Engine\Build\BatchFiles\Build.bat” CGrenadeLauncherEditor Win64 Development “E:\UE_Projects\CGrenadeLauncher\CGrenadeLauncher.uproject” -rocket” exited with code -1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Some screenshots:

http://prntscr.com/8mnuqq
http://prntscr.com/8mnv0y
http://prntscr.com/8mnvbp
http://prntscr.com/8mnvg0

I am using the FIrstPerson C++ Template. I just added a new method and included “EngineUtils.h”.

Hey Zarkopafilis-

According to the error message it appears that line 41 of CGrenadeLauncherCharacter.h tries to reference ACGrenadeLauncherProjectile in some way and doesn’t know what ACGrenadeLauncherProjectile is. Make sure that you have an include statement for CGrenadeLauncherProjectile inside of CGrenadeLauncherCharacter above the .generated.h include.

Cheers

Thanks. Another thing to mention would be that the generated header file include should be the last include .