How can I spawn an actor in a character class?

hello my dear friends
I simply made a class from editor and named it ATeleportSource
after that when i want to make a pointer variable of it in my character class the cimpiler raised

Error 1 error C2065: ‘ATeleportSource’ : undeclared identifier

i tried to include this class header in my character class cpp file like this

#include "TeleportSource.h"

and after that this error raised from compiler

Error 1 error C2220: warning treated as error - no ‘object’ file generated

this the code of constructor of my character class

ATwelveGMCharacter::ATwelveGMCharacter(const class FPostConstructInitializeProperties& PCIP)
	: Super(PCIP)
	ATeleportSource* testSource;

any help appreciated

()-> SpawnActor(SomeClass::StaticClass ());

SomeClass is class you want to spawn. It returns poiter to newly spawn actor, it also has other arguments like location etc. But don’t call this in constructor becuse world instance dont exist in at that point.

thank you so much