I am following some code from the Building an RPG with Unreal book and while I was able to fix some errors, I just got some link errors and this time I’m completely confused.
Here’s the errors
Error RPGGameMode.cpp.obj : error LNK2019: unresolved external symbol “public: static class UGameCharacter * __cdecl UGameCharacter::CreateGameCharacter(struct FEnemyInfo *,class UObject *)” (?CreateGameCharacter@UGameCharacter@@SAPEAV1@PEAUFEnemyInfo@@PEAVUObject@@@Z) referenced in function “private: void __cdecl ARPGGameMode::TestCombat(void)” (?TestCombat@ARPGGameMode@@AEAAXXZ)
Error RPGGameMode.cpp.obj : error LNK2019: unresolved external symbol “public: void __cdecl URPGGameInstance::PrepareReset(void)” (?PrepareReset@URPGGameInstance@@QEAAXXZ) referenced in function “private: virtual void __cdecl ARPGGameMode::Tick(float)” (?Tick@ARPGGameMode@@EEAAXM@Z)
Error C:\ParageofAge\Binaries\Win64\UE4Editor-ParageofAge-8721.dll : fatal error LNK1120: 2 unresolved externals
I read how these errors can be caused by the build.cs so here’s what I have in the build.cs
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class ParageofAge : ModuleRules
{
public ParageofAge(TargetInfo Target)
{
PublicDependencyModuleNames.AddRange(new string]{ “Core”, “CoreUObject”, “Engine”, “InputCore”, “UMG”, “Slate”, “SlateCore” });
PrivateDependencyModuleNames.AddRange(new string] { });
}
}
I apologize in advance for any confusion however any help would definitely be appreciated.
Thanks