"The following source files are not including" and "-rocket exited with code -1"

I am getting two errors that I can’t figure out how to fix. This is the first one:

Error	1	error : All source files in module "Ambers_Drop" must include the same precompiled header first.  Currently "C:\Users\User\Documents\Unreal Projects\Ambers_Drop\Source\Ambers_Drop\Ambers_Drop.h" is included by most of the source files.  The following source files are not including "C:\Users\User\Documents\Unreal Projects\Ambers_Drop\Source\Ambers_Drop\Ambers_Drop.h" as their first include:	C:\Users\User\Documents\Unreal Projects\Ambers_Drop\Intermediate\ProjectFiles\EXEC	Ambers_Drop

The second one is this:

Error	2	error MSB3073: The command ""C:\Program Files\Epic Games\4.8\Engine\Build\BatchFiles\Build.bat" Ambers_Drop Win64 DebugGame "C:\Users\User\Documents\Unreal Projects\Ambers_Drop\Ambers_Drop.uproject" -rocket" exited with code -1.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets	38	5	Ambers_Drop

Anyone got any ideas on what is going on? I tried to find the file that is missing in the first error called “EXEC Ambers_Drop” and had no luck finding it. And the second error I don’t have a clue on how to fix.

Any help would be appreciated.

The second error is going out of first, you know, header parser failed, then whole compiler said that header crashed.
When you getting first error? Can you please give #include-s of Ambers_Drop.h?
All i can say that you trying to launch the game, not editor, possibly without cooking content. Or something is wrong with headers. No more clues…

I don’t understand what you are asking.

Can you possibly rephrase your wording?

  1. What happens, when you getting this error?
  2. Can you share all #include directive you got in Ambers-Drop.h?

What was the last thing you did that might have caused this issue?

  1. It will prevent the project from compiling,
  2. The only thing in "Ambers_Drop.h is this: #include “Engine.h”

I have no clue to be honest. If you had asked me this question a couple of days ago I could have probably answer that, but now I don’t remember. Sorry

Yeah, first question was stupid…
If your Amber_Drop.h contains only #include “Engine.h”, then this will not compile.
File must be like this:

#ifndef __AMBERS_DROP_H__
#define __AMBERS_DROP_H__

#include "EngineMinimal.h"

#endif

And .cpp:

#include "Ambers_Drop.h"

IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, Ambers_Drop, "Ambers_Drop" );

If this not helps, then i have no ideas.

Nope, didn’t work.

Any more ideas?

Check all your .h files (Source), they all must contain Ambers_Drop.h as their first include. Maybe you accidentaly erased it somehwere.

Check that all your .cpp files include “Ambers_Drop.h” at first.

Check that all your .cpp files include “Ambers_Drop.h” at first:

    #include "Ambers_Drop.h"
    #include "SomethingElse.h"
    [...]