I'm done with this error LNK2001. What does it want?

I added a new function to AGameStateBase to extend poor steam voice chat implementation:

...
#include "Components/AudioComponent.h"
#include "UObject/CoreOnline.h"
...
UCLASS(config=Game, notplaceable, BlueprintType, Blueprintable)
class ENGINE_API AGameStateBase : public AInfo
{
	GENERATED_UCLASS_BODY()

public:
    virtual bool CheckRemoteTalker(UAudioComponent* AudioComponent, const FUniqueNetId& RemoteTalkerId);

I can compile UE4, but I can’t compile the project with this function overridden.

Module.ShooterGame.2_of_6.cpp.obj :
error LNK2001: ??? ???
??? ““public: virtual bool __cdecl
AGameStateBase::CheckRemoteTalker(class
UAudioComponent *,class FUniqueNetId
const &)”
(?CheckRemoteTalker@AGameStateBase@@UEAA_NPEAVUAudioComponent@@AEBVFUniqueNetId@@@Z)”
3>Module.ShooterGame.gen.2_of_14.cpp.obj
: error LNK2001: ??? ???
??? ““public: virtual bool __cdecl
AGameStateBase::CheckRemoteTalker(class
UAudioComponent *,class FUniqueNetId
const &)”
(?CheckRemoteTalker@AGameStateBase@@UEAA_NPEAVUAudioComponent@@AEBVFUniqueNetId@@@Z)”
3>Module.ShooterGame.gen.7_of_14.cpp.obj
: error LNK2001: ??? ???
??? ““public: virtual bool __cdecl
AGameStateBase::CheckRemoteTalker(class
UAudioComponent *,class FUniqueNetId
const &)”
(?CheckRemoteTalker@AGameStateBase@@UEAA_NPEAVUAudioComponent@@AEBVFUniqueNetId@@@Z)”
3>D:\Downloads\Unreal
Projects\Gearstorm\Binaries\Win64\ShooterGame-Win64-DebugGame.exe
: fatal error LNK1120: ???
??? ???: 1
I guess ‘Unresolved external symbol’ is hiding under ‘???’. Anyways, is there something I should add into PublicDependencyModuleNames or what? I hate this ■■■■ error it’s been two years I’m trying to understand what does it want.

answers.unrealengine.com used to be pretty useful place, but I guess everyone moved to Unity and there is no active people here anymore and staff seems like only cares about epicsupport.force.com , but I can’t loose hope.

Try the following in order:

  • Make sure there is an implementation of CheckRemoteTalker in your cpp file and has been compiled by your engine source build (using the configuration that your game is currently using Development, Debug, DevelopmentEditor etc)
  • Clean your game project and rebuild

What is CheckRemoteTalker ? Where does it come from, it’s not a member of AInfo and doesn’t seem to appear anywhere in the API.

I added a new function to
AGameStateBase to extend poor steam
voice chat implementation:

I can compile UE4
CheckRemoteTalker() returns false in parent class.
Project was cleaned many times.

So I guess it was declared virtual bool CheckRemoteTalker(); you may need to override it in your GameStateBase.h