Spawning an Actor via c++

I’ve been trying to spawn the object for about 2 hours now and I am having no luck.

What parameters for location does the SpawnActor actually need? I’ve tried to use FVector but it doesn’t seem to like it.

FActorSpawnParameters SpawnParams;
SpawnParams.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AdjustIfPossibleButAlwaysSpawn;

GetWorld()->SpawnActor< ATerrain>(ATerrain::StaticClass(),m_location, m_rotation,SpawnParams);

//try this

It’s saying there’s an issue with m_Location

The problem is that there is no signature with only position, or you use transformn or position and rotation

SpawnActor
(
UClass * InClass,
FVector const* Location,
FRotator const* Rotation,
const FActorSpawnParameters & Spawn…
)

or

SpawnActor
(
UClass * Class,
FTransform const& Transform,
const FActorSpawnParameters & Spawn…
)

That has got rid of the errors however the actor still isn’t spawning when i run the project