Cpp LNK errors

hi
im new to c++ when i try to declare a function i get these errors:

Error MyActor.cpp.obj : error LNK2019: unresolved external symbol “public: void __cdecl AMyActor::Test(void)” (?Test@AMyActor@@QEAAXXZ) referenced in function “public: void __cdecl AMyActor::execTest(struct FFrame &,void * const)” (?execTest@AMyActor@@QEAAXAEAUFFrame@@QEAX@Z)

Error MyGame.generated.cpp.obj : error LNK2001: unresolved external symbol “public: void __cdecl AMyActor::Test(void)” (?Test@AMyActor@@QEAAXXZ)

Error C:\Program Files (x86)\Epic Games\UE_4.16\MyGame\Binaries\Win64\UE4Editor-MyGame-569.dll : fatal error LNK1120: 1 unresolved externals

Info ERROR: UBT ERROR: Failed to produce item: C:\Program Files (x86)\Epic Games\UE_4.16\MyGame\Binaries\Win64\UE4Editor-MyGame-569.dll

this is how my header file looks like:

and my cpp file:

thanks in advance,

Hi,

The first specifier in UFUNCTION doesn’t exist for that macro.

change:

UFUNCTION(blueprintable, Catagory = "Test")

To

UFUNCTION(BlueprintPure, Category = "Test|SubCategory"))

For more UFUNCTION specifiers you can go here: https://wiki.unrealengine.com/UFUNCTION

The “blueprintable” parameter can however be used for the UCLASS to derive blueprint children from it:

UCLASS(blueprintable) 
 class MYGAME_API AMyActor : public AActor 
{

GENERATED_BODY()

 //etc
}

Best of luck!