Problem adding Code to Project

I have tried to add a few diffrent types of UObjects to my project via the code wizard but am getting some strange issues regarding ‘linking’…

In this picture you can see some errors i receive when i add a child to the AIController class and attempt to run the Engine.

Below is some output

 [22/62] link.exe UE4Editor-UnrealSpaceGame.dll
1>     Creating library D:\UnrealSpaceGame\Intermediate\Build\Win64\UnrealSpaceGameEditor\Development\UE4Editor-UnrealSpaceGame.lib and object D:\UnrealSpaceGame\Intermediate\Build\Win64\UnrealSpaceGameEditor\Development\UE4Editor-UnrealSpaceGame.exp
1>MyAIControllerTest.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl AAIController::AAIController(class FPostConstructInitializeProperties const &)" (__imp_??0AAIController@@QEAA@AEBVFPostConstructInitializeProperties@@@Z) referenced in function "public: __cdecl AMyAIControllerTest::AMyAIControllerTest(class FPostConstructInitializeProperties const &)" (??0AMyAIControllerTest@@QEAA@AEBVFPostConstructInitializeProperties@@@Z)
1>MyAIControllerTest.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl AAIController::~AAIController(void)" (__imp_??1AAIController@@UEAA@XZ) referenced in function "public: virtual __cdecl AMyAIControllerTest::~AMyAIControllerTest(void)" (??1AMyAIControllerTest@@UEAA@XZ)
1>UnrealSpaceGame.generated.cpp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl AAIController::~AAIController(void)" (__imp_??1AAIController@@UEAA@XZ)
1>MyAIControllerTest.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl AAIController::AAIController(class AAIController const &)" (__imp_??0AAIController@@QEAA@AEBV0@@Z) referenced in function "public: __cdecl AMyAIControllerTest::AMyAIControllerTest(class AMyAIControllerTest const &)" (??0AMyAIControllerTest@@QEAA@AEBV0@@Z)
1>UnrealSpaceGame.generated.cpp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl AAIController::AAIController(class AAIController const &)" (__imp_??0AAIController@@QEAA@AEBV0@@Z)
1>MyAIControllerTest.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl AAIController::ClearFocus(unsigned char)" (?ClearFocus@AAIController@@UEAAXE@Z)

.......

1>D:\UnrealSpaceGame\Binaries\Win64\UE4Editor-UnrealSpaceGame.dll : fatal error LNK1120: 26 unresolved externals

My apologies its so hard to read.
I have tried regenerating the code project, adding a few overrides and deleting the files and trying again. I have no idea what is causing this problem. I am using 4.4.1. Please help! Is my Project destroyed somehow?

When trying to recreate the problem in a brand new project started from a First person C++ example and adding a AIController the following happens

1>D:/CodeExsample/Source/CodeExsample/Public/MyAIControllerTest.h(11): error : Superclass AIController of class MyAIControllerTest not found
1>Error : Failed to generate code for CodeExsampleEditor - error code: 2

Any Idea what is happening here?
Thank you so much for your time reading my large post! Any help would really mean so much.

Fixxed! I needed to add
AIModule

to the

	PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "AIModule" });

in the build.cs file!

See here: