Build Fail Error MSB3073

Having trouble compiling, can anyone help?


1>------ Rebuild All started: Project: ProjectLife, Configuration: Development_Game x64 ------
2>------ Skipped Rebuild All: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
2>Project not selected to build for this solution configuration 
1>  Cleaning ProjectLife Binaries...
1>  Parsing headers for ProjectLife
1>  C:/Users/Bladerunner/Documents/Unreal Projects/ProjectLife/Source/ProjectLife/UBpVideoSettingsLib.h(70) : Expected an include at the top of the header: '#include "UBpVideoSettingsLib.generated.h"'
1>Error : Failed to generate code for ProjectLife - error code: OtherCompilationError (5)
1>  UnrealHeaderTool failed for target 'ProjectLife' (platform: Win64, module info: C:\Users\Bladerunner\Documents\Unreal Projects\ProjectLife\Intermediate\Build\Win64\ProjectLife\Development\UnrealHeaderTool.manifest).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(43,5): error MSB3075: The command ""C:\Program Files\Epic Games\4.8\Engine\Build\BatchFiles\Rebuild.bat" ProjectLife Win64 Development "C:\Users\Bladerunner\Documents\Unreal Projects\ProjectLife\ProjectLife.uproject" -rocket" exited with code 5. Please verify that you have sufficient rights to run this command.
========== Rebuild All: 0 succeeded, 1 failed, 1 skipped ==========

The error speaks for itself: Header files that declare UCLASS or USTRUCT types need to include a particular autogenerated header. If you have a class MyHeader.h with those, it needs to include MyHeader.generated.h after all the other includes and before any of the class declarations.

Thanks so much! Good to know that was where the issue was. Turns out there was a typo in the include, but didnt need those files anyway.

Next problem I had was the same as this guy: LNK1181 Error

Just did the same and cleaned out the two folders (dont have any c++ yet) which resulted in it compiling!