I’m getting an unresolved external symbol from my generated header file or something. This property (remaining time) is replicated and thus a GetLifetimeReplicatedProps function is generated in the generated header. I’m not sure how to solve this. I’m mimicking the ShooterGameState.h.
// PropHuntGameState.h
#pragma once
#include "GameFramework/GameState.h"
#include "PropHuntGameState.generated.h"
/**
*
*/
UCLASS()
class THIRDPERSONBP_API APropHuntGameState : public AGameState
{
GENERATED_UCLASS_BODY()
/** time left for warmup / match */
UPROPERTY(Transient, Replicated)
int32 RemainingTime;
};
1> Creating library C:\Users\Cobryis\Dev\Unreal\ThirdPersonBP\Intermediate\Build\Win64\ThirdPersonBPEditor\DebugGame\UE4Editor-ThirdPersonBP-Win64-DebugGame.lib and object C:\Users\Cobryis\Dev\Unreal\ThirdPersonBP\Intermediate\Build\Win64\ThirdPersonBPEditor\DebugGame\UE4Editor-ThirdPersonBP-Win64-DebugGame.exp
1>PropHuntBase.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl APropHuntGameState::GetLifetimeReplicatedProps(class TArray &)const " (?GetLifetimeReplicatedProps@APropHuntGameState@@UEBAXAEAV?$TArray@VFLifetimeProperty@@VFDefaultAllocator@@@@@Z)
1>PropHuntGameState.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl APropHuntGameState::GetLifetimeReplicatedProps(class TArray &)const " (?GetLifetimeReplicatedProps@APropHuntGameState@@UEBAXAEAV?$TArray@VFLifetimeProperty@@VFDefaultAllocator@@@@@Z)
1>ThirdPersonBP.generated.cpp.obj : error LNK2019: unresolved external symbol "public: virtual void __cdecl APropHuntGameState::GetLifetimeReplicatedProps(class TArray &)const " (?GetLifetimeReplicatedProps@APropHuntGameState@@UEBAXAEAV?$TArray@VFLifetimeProperty@@VFDefaultAllocator@@@@@Z) referenced in function “class UFunction * __cdecl Z_Construct_UFunction_ATestHUD_OnChatTextSubmitted(void)” (?Z_Construct_UFunction_ATestHUD_OnChatTextSubmitted@@YAPEAVUFunction@@anonymous_user_9674a66c)
1>C:\Users\Cobryis\Dev\Unreal\ThirdPersonBP\Binaries\Win64\UE4Editor-ThirdPersonBP-Win64-DebugGame.dll : fatal error LNK1120: 1 unresolved externals