UE_5.7\Engine\Binaries\Win64\UnrealEditor-Engine.dll less ANoPawnPlayerController member functions?

UE_5.7\Engine\Binaries\Win64\UnrealEditor-Engine.dll

less ANoPawnPlayerController member functions?

2> 正在创建库 E:/devel/Unreal_Projects/test_bugs/Intermediate/Build/Win64/x64/UnrealEditor/Development/test_bugs/UnrealEditor-test_bugs-0001.lib 和对象 E:/devel/Unreal_Projects/test_bugs/Intermediate/Build/Win64/x64/UnrealEditor/Development/test_bugs/UnrealEditor-test_bugs-0001.exp
2>[6/7] Link [x64] UnrealEditor-test_bugs-0001.dll
2>Module.test_bugs.gen.cpp.obj : error LNK2001: 无法解析的外部符号 “public: virtual void __cdecl ANoPawnPlayerController::ServerEnableReplicationToConnection_Implementation(bool)” (?ServerEnableReplicationToConnection_Implementation@ANoPawnPlayerController@@UEAAX_N@Z)
2>Module.test_bugs.gen.cpp.obj : error LNK2001: 无法解析的外部符号 “public: virtual void __cdecl ANoPawnPlayerController::ServerSetViewTargetPosition_Implementation(struct UE::Math::TVector)” (?ServerSetViewTargetPosition_Implementation@ANoPawnPlayerController@@UEAAXU?$TVector@N@Math@UE@@@Z)
2>Module.test_bugs.gen.cpp.obj : error LNK2019: 无法解析的外部符号 “public: __cdecl ANoPawnPlayerController::ANoPawnPlayerController(class FObjectInitializer const &)” (??0ANoPawnPlayerController@@QEAA@AEBVFObjectInitializer@@@Z),函数 “void __cdecl InternalConstructor(class FObjectInitializer const &)” (??$InternalConstructor@VAMyNoPawnPlayerController@@@@YAXAEBVFObjectInitializer@@@Z) 中引用了该符号
2>Module.test_bugs.gen.cpp.obj : error LNK2001: 无法解析的外部符号 “public: virtual void __cdecl ANoPawnPlayerController::PostInitializeComponents(void)” (?PostInitializeComponents@ANoPawnPlayerController@@UEAAXXZ)
2>Module.test_bugs.gen.cpp.obj : error LNK2001: 无法解析的外部符号 "public: virtual class AActor * __cdecl ANoPawnPlayerController::GetViewTarget(void)const " (?GetViewTarget@ANoPawnPlayerController@@UEBAPEAVAActor@@XZ)
2>Module.test_bugs.gen.cpp.obj : error LNK2001: 无法解析的外部符号 "public: virtual class UNetConnection * __cdecl ANoPawnPlayerController::GetNetConnection(void)const " (?GetNetConnection@ANoPawnPlayerController@@UEBAPEAVUNetConnection@@XZ)
2>E:\devel\Unreal_Projects\test_bugs\Binaries\Win64\UnrealEditor-test_bugs-0001.dll : fatal error LNK1120: 6 个无法解析的外部命令

i checked UE_5.7\Engine\Binaries\Win64\UnrealEditor-Engine.dll

result is

D:\Program_Files\Epic Games\UE_5.7\Engine\Binaries\Win64>dumpbin /exports UnrealEditor-Engine.dll | findstr NoPawnPlayerController

803 322 01ACA890 ??0ANoPawnPlayerController@@QEAA@AEAVFVTableHelper@@@Z
3877 F24 01AD0EF0 ??1ANoPawnPlayerController@@UEAA@XZ
23349 5B34 043A0BA8 ?NumNoPawnPlayerControllersForReplication@Metric@Net@UE@@3VFName@@B
34088 8527 01AB80B0 ?Z_Construct_UClass_ANoPawnPlayerController@@YAPEAVUClass@@XZ
34089 8528 01B3F9F0 ?Z_Construct_UClass_ANoPawnPlayerController_NoRegister@@YAPEAVUClass@@XZ

but these six functions exist in PlayerController.cpp

nin hao,

this types of link errors are usually caused by a missing dependency

in your game.build.cs add the required module

 PublicDependencyModuleNames.AddRange(new string[]
        {
            "Core",
            "Whatever the module name is",
        });

i imagine is something with ai