How can I resolve these compile errors when trying to follow slate tutorial?

I followed [“this tutorial”][1] and had to make minor changes to get it to compile, however I still get the errors below whenever I uncomment lines 20, 27 or 34 from the attached screenshot, I’m doing this from a Mac.

Undefined symbols for architecture x86_64:
“SCompoundWidget::OnPaint(FGeometry const&, FSlateRect const&, FSlateWindowElementList&, int, FWidgetStyle const&, bool) const”, referenced from:
vtable for SMyUIWidget in MyHUD.cpp.o
“SWidget::OnHitTest(FGeometry const&, FVector2D)”, referenced from:
vtable for SMyUIWidget in MyHUD.cpp.o
“SWidget::OnKeyboardFocusReceived(FGeometry const&, FKeyboardFocusEvent const&)”, referenced from:
vtable for SMyUIWidget in MyHUD.cpp.o
“SWidget::OnKeyChar(FGeometry const&, FCharacterEvent const&)”, referenced from:
vtable for SMyUIWidget in MyHUD.cpp.o
and the list of errors

goes on

#Build CS

Find your Build.CS and add this!

//Private Module Dependencies                                                            
PrivateDependencyModuleNames.AddRange(new string[] { "InputCore", "Slate", "SlateCore" });

Specifically SlateCore

:slight_smile:

Rama

Great, that did the trick, thanks a lot!

Hi, I am still getting these errors, despite of making the change to the build.cs file. I am running Unreal 4.14 and XCode 8. Could anyone help please?