I’m tryout to make my class AAIUnitController
Class header (constructor):
class RTS_API AAIUnitController : public ADetourCrowdAIController
Class source:
AAIUnitController::AAIUnitController(const FObjectInitializer& ObjectInitializer) : ADetourCrowdAIController(ObjectInitializer)
{
}
Errors list:
1>[1/2] Link [x64] UnrealEditor-RTS.dll
1> Creating library D:\Projects\Unreal Projects\RTS\Intermediate\Build\Win64\x64\UnrealEditor\Development\RTS\UnrealEditor-RTS.suppressed.lib and object D:\Projects\Unreal Projects\RTS\Intermediate\Build\Win64\x64\UnrealEditor\Development\RTS\UnrealEditor-RTS.suppressed.exp
1>Module.RTS.cpp.obj : error LNK2019: unresolved external symbol "private: static class UClass * __cdecl ADetourCrowdAIController::GetPrivateStaticClass(void)" (?GetPrivateStaticClass@ADetourCrowdAIController@@CAPEAVUClass@@XZ) referenced in function "public: static class UClass * __cdecl ADetourCrowdAIController::StaticClass(void)" (?StaticClass@ADetourCrowdAIController@@SAPEAVUClass@@XZ)
1>Module.RTS.cpp.obj : error LNK2019: unresolved external symbol "public: __cdecl ADetourCrowdAIController::ADetourCrowdAIController(class FVTableHelper &)" (??0ADetourCrowdAIController@@QEAA@AEAVFVTableHelper@@@Z) referenced in function "public: __cdecl AAIUnitController::AAIUnitController(class FVTableHelper &)" (??0AAIUnitController@@QEAA@AEAVFVTableHelper@@@Z)
1>Module.RTS.cpp.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl ADetourCrowdAIController::~ADetourCrowdAIController(void)" (??1ADetourCrowdAIController@@UEAA@XZ) referenced in function "public: virtual __cdecl AAIUnitController::~AAIUnitController(void)" (??1AAIUnitController@@UEAA@XZ)
1>AIUnitController.cpp.obj : error LNK2019: unresolved external symbol "public: __cdecl ADetourCrowdAIController::ADetourCrowdAIController(class FObjectInitializer const &)" (??0ADetourCrowdAIController@@QEAA@AEBVFObjectInitializer@@@Z) referenced in function "public: __cdecl AAIUnitController::AAIUnitController(class FObjectInitializer const &)" (??0AAIUnitController@@QEAA@AEBVFObjectInitializer@@@Z)
1>D:\Projects\Unreal Projects\RTS\Binaries\Win64\UnrealEditor-RTS.dll : fatal error LNK1120: 4 unresolved externals
1>[2/2] WriteMetadata RTSEditor.target cancelled
Now to use Detour Crowd in C++ project?