GetOverlappingActors with ALandscape::StaticClass() as class filter not recognized ?

I am getting a weird error :


CheckBuilding.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) private: static class UClass * __cdecl ALandscape::GetPrivateStaticClass(void)" (__imp_?GetPrivateStaticClass@ALandscape@@CAPEAVUClass@@XZ) referenced in function "public: void __cdecl ACheckBuilding::CheckShapeLinkage(class UShapeComponent *,class TArray<class AActor *,class FDefaultAllocator>)" (?CheckShapeLinkage@ACheckBuilding@@QEAAXPEAVUShapeComponent@@V?$TArray@PEAVAActor@@VFDefaultAllocator@@@@@Z)
2>E:\my_work\UE4\MyProject\Binaries\Win64\UE4Editor-MyProject-7880.dll : fatal error LNK1120: 1 unresolved externals


void ACheckBuilding::CheckShapeLinkage(UShapeComponent *shape, TArray<AActor *> linking_actors)
{
    TArray<AActor *> other_actors;
    shape->GetOverlappingActors(other_actors, ALandscape::StaticClass());

    for (AActor *other_actor : other_actors) {

        if (other_actor->ActorHasTag(game_inst->tags_used.shape_collider)) {

            linking_actors.Add(other_actor);
        }
    }
}

Is this a limitation regarding filtering selection by specifying class ?