Error C2065: 'GEngine?' : undeclared

Guys i cant build my project trying to make this tutorial and nothing always errors i am new in UE 4 and can’t resolve why is this error…
Also another errors :

Error	1	error C2065: 'GEngine?' : undeclared identifier	E:\Unreal Projects\FPSProject\Source\FPSProject\FPSGameMode.cpp	19	1	FPSProject

    Error	2	error C2065: '?1' : undeclared identifier	E:\Unreal Projects\FPSProject\Source\FPSProject\FPSGameMode.cpp	19	1	FPSProject

    Error	3	error C3861: 'AddOnScreenDebugMessage': identifier not found	E:\Unreal Projects\FPSProject\Source\FPSProject\FPSGameMode.cpp	19	1	FPSProject

    Error	4	error : Failed to produce item: E:\Unreal Projects\FPSProject\Binaries\Win64\UE4Editor-FPSProject.pdb	E:\Unreal Projects\FPSProject\Intermediate\ProjectFiles\ERROR	FPSProject
    
    Error	5	error MSB3073: The command ""E:\Program Files (x86)\Epic Games\4.8\Engine\Build\BatchFiles\Build.bat" FPSProjectEditor Win64 Development "E:\Unreal Projects\FPSProject\FPSProject.uproject" -rocket" exited with code -1.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets	38	5	FPSProject

    	6	IntelliSense: name followed by '::' must be a class or namespace name	e:\Unreal Projects\FPSProject\Source\FPSProject\FPSGameMode.cpp	9	1	FPSProject
    	7	IntelliSense: expected a declaration	e:\Unreal Projects\FPSProject\Source\FPSProject
\FPSGameMode.cpp	10	2	FPSProject
    	8	IntelliSense: this declaration has no storage class or type specifier	e:\Unreal Projects\FPSProject\Source\FPSProject\FPSGameMode.h	11	1	FPSProject
    	9	IntelliSense: expected a ';'	e:\Unreal Projects\FPSProject\Source\FPSProject\FPSGameMode.h	12	1	FPSProject

Please help.
I am trying this tutorial → FPsProject

at the top of FPSGameMode.cpp add this

#include "Engine.h"

That helped me to build project, but still errors is that normal?

Error	1	error : #include found after .generated.h file - the .generated.h file should always be the last #include in a header	E:\Unreal Projects\FPSProject\Source\FPSProject\FPSGameMode.h	1	1	FPSProject
Error	2	error code: OtherCompilationError (5)	E:\Unreal Projects\FPSProject\Intermediate\ProjectFiles\Error	FPSProject

in FPSGameMode.h change the order of included files , the last one must be something.generated.h

They are `#pragma once

 1. List item #include "FPSGameMode.generated.h"
 2. #include "GameFramework/GameMode.h"`

i’ve switched them now 3 erors
my coode is

`#pragma once

     1. #include "FPSGameMode.generated.h"
      2. #include "GameFramework/GameMode.h"

    /**
     * 
     */
    UCLASS()
    class FPSPROJECT_API AFPSGameMode : public AGameMode
    {
    	GENERATED_BODY()
    		
    		virtual void StartPlay() override;
    			
    };

`

#pragma once
#include “GameFramework/GameMode.h”
#include “FPSGameMode.generated.h”

Nothing happens… same error

Hey ToTeMa-

Could you tab over to the Output tab and see if there’s any more information? The “OtherCompilationError (5)” means that something else is failing but it isn’t showing what that is in the error window.

I reainstalled Visual basic i think the problem is in it, now i tryed one tutorial and it works like charm. The problem was maybe in my version of visual basic 2013, now i am with community version and works fine with UE 4.