linking error (UTextBlock)

Trying to add to custom project string measure function, but getting linking errors, am i missing something? Thanks.

in .h file:
#include “Components/TextBlock.h”


UFUNCTION(BlueprintCallable, Category = “Utilities”)
FVector2D MeasureString(UTextBlock *textBlock, const FString &text);

.cpp
FVector2D ABaseCharacter::MeasureString(UTextBlock *textBlock, const FString &text)

In build.cs
PrivateDependencyModuleNames.AddRange(new string] { “Slate”, “SlateCore” });

output:
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol “__declspec(dllimport) class UClass * __cdecl Z_Construct_UClass_UTextBlock_NoRegister(void)” (_imp?Z_Construct_UClass_UTextBlock_NoRegister@@YAPEAVUClass@@XZ) referenced in function “void __cdecl `dynamic initializer for ‘public: static struct UE4CodeGen_Private::FObjectPropertyParams const Z_Construct_UFunction_ABaseCharacter_MeasureString_Statics::NewProp_textBlock’’(void)” (??__E?NewProp_textBlock@Z_Construct_UFunction_ABaseCharacter_MeasureString_Statics@@2UFObjectPropertyParams@UE4CodeGen_Private@@B@@YAXXZ)

Google always saves the day, tho need to dig and hour or two… solution: PrivateDependencyModuleNames.AddRange(new string] { “UMG”, “Slate”, “SlateCore” });