# Class 'AGameModeBase' not found

**URL:** <https://forums.unrealengine.com/t/class-agamemodebase-not-found/372679>\
**Category:** C++\
**Tags:** unreal-engine, editor, UE4, CPP, question\
**Created:** [October 7, 2016, 12:42am UTC](https://forums.unrealengine.com/t/class-agamemodebase-not-found/372679 "2016-10-07T00:42:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitemite](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mitemite](https://forums.unrealengine.com/u/mitemite)\
**Post date:** [October 7, 2016, 12:42am UTC](https://forums.unrealengine.com/t/class-agamemodebase-not-found/372679/1 "2016-10-07T00:42:48Z")

</div>

I am getting this error after cloning my project from git. I can’t build my project or make from source or anything. What am I missing?

> # 1\>------ Build started: Project: MyProject, Configuration: DebugGame\_Editor x64 ------ 1\> Creating makefile for MyProjectEditor (no existing makefile) 1\> Performing full C++ include scan (no include cache file) 1\> Parsing headers for MyProjectEditor 1\> Running UnrealHeaderTool “F:\Documents\UNREAL PROJECTS\proto-collab-dome\MyProject.uproject” “F:\Documents\UNREAL PROJECTS\proto-collab-dome\Intermediate\Build\Win64\MyProjectEditor\DebugGame\MyProjectEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed 1\>EXEC : error : Couldn’t find parent type for ‘MyProjectGameModeBase’ named ‘AGameModeBase’ in current module or any other module parsed so far. 1\> F:/Documents/UNREAL PROJECTS/proto-collab-dome/Source/MyProject/MyProjectGameModeBase.h(12) : Class ‘AGameModeBase’ not found. 1\>Error : Failed to generate code for MyProjectEditor - error code: OtherCompilationError (5) 1\> UnrealHeaderTool failed for target ‘MyProjectEditor’ (platform: Win64, module info: F:\Documents\UNREAL PROJECTS\proto-collab-dome\Intermediate\Build\Win64\MyProjectEditor\DebugGame\MyProjectEditor.uhtmanifest). 1\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command ““F:\Epic Games\4.13\Engine\Build\BatchFiles\Build.bat” MyProjectEditor Win64 DebugGame “F:\Documents\UNREAL PROJECTS\proto-collab-dome\MyProject.uproject” -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [October 7, 2016, 12:41pm UTC](https://forums.unrealengine.com/t/class-agamemodebase-not-found/372679/2 "2016-10-07T12:41:59Z")

</div>

Hey mitemite,

The compiler cannot find AGameModeBase. Either this class doesn’t exist or it is not being loaded, as a part of a module or otherwise.

Make sure AGameModeBase is a valid class.

---

<div class="post-metadata">

**Author:** ![mitemite](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mitemite](https://forums.unrealengine.com/u/mitemite)\
**Post date:** [October 7, 2016, 2:07pm UTC](https://forums.unrealengine.com/t/class-agamemodebase-not-found/372679/3 "2016-10-07T14:07:10Z")

</div>

Fixed it by removing the headers pointing to the missing files in my game mode script. Temporary fix probably but at least the project works now.
