Hi anyone.
My problem:
Failed to add class “NameWidget”. Failed to automatically compile the “NameProject” module.
My log:
1>SMyCompoundWidget.cpp.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) public: static void __cdecl FSlateControlledConstruction::operator delete(void *)” (_imp??3FSlateControlledConstruction@@SAXPEAX@Z) referenced in function “public: virtual void * __cdecl SMyCompoundWidget::`vector deleting destructor’(unsigned int)” (??_ESMyCompoundWidget@@UEAAPEAXI@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) protected: __cdecl SCompoundWidget::SCompoundWidget(void)” (_imp??0SCompoundWidget@@IEAA@XZ) referenced in function “public: __cdecl SMyCompoundWidget::SMyCompoundWidget(void)” (??0SMyCompoundWidget@@QEAA@XZ)
1>SMyCompoundWidget.cpp.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) public: virtual __cdecl SCompoundWidget::~SCompoundWidget(void)” (_imp??1SCompoundWidget@@UEAA@XZ) referenced in function “public: virtual __cdecl SMyCompoundWidget::~SMyCompoundWidget(void)” (??1SMyCompoundWidget@@UEAA@XZ)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “protected: virtual void __cdecl SWidget::CacheDesiredSize(void)” (?CacheDesiredSize@SWidget@@MEAAXXZ)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual struct FVector2D __cdecl SCompoundWidget::ComputeDesiredSize(void)const " (?ComputeDesiredSize@SCompoundWidget@@UEBA?AUFVector2D@@anonymous_user_9674a66c)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FChildren * __cdecl SCompoundWidget::GetChildren(void)” (?GetChildren@SCompoundWidget@@UEAAPEAVFChildren@@anonymous_user_9674a66c)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual class FString __cdecl SWidget::GetCreatedInFile(void)const " (?GetCreatedInFile@SWidget@@UEBA?AVFString@@anonymous_user_9674a66c)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual int __cdecl SWidget::GetCreatedInLineNumber(void)const " (?GetCreatedInLineNumber@SWidget@@UEBAHXZ)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual struct FSlateBrush const * __cdecl SWidget::GetFocusBrush(void)const " (?GetFocusBrush@SWidget@@MEBAPEBUFSlateBrush@@anonymous_user_9674a66c)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual struct FSlateColor __cdecl SCompoundWidget::GetForegroundColor(void)const " (?GetForegroundColor@SCompoundWidget@@UEBA?AUFSlateColor@@anonymous_user_9674a66c)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual class FString __cdecl SWidget::GetReadableLocation(void)const " (?GetReadableLocation@SWidget@@UEBA?AVFString@@anonymous_user_9674a66c)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual class FName __cdecl SWidget::GetTag(void)const " (?GetTag@SWidget@@UEBA?AVFName@@anonymous_user_9674a66c)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class TSharedPtr __cdecl SWidget::GetToolTip(void)” (?GetToolTip@SWidget@@UEAA?AV?$TSharedPtr@VIToolTip@@$0A@@@anonymous_user_9674a66c)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual enum EWindowZone::Type __cdecl SWidget::GetWindowZoneOverride(void)const " (?GetWindowZoneOverride@SWidget@@UEBA?AW4Type@EWindowZone@@anonymous_user_9674a66c)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl SWidget::HasKeyboardFocus(void)const " (?HasKeyboardFocus@SWidget@@UEBA_NXZ)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl SWidget::IsHovered(void)const " (?IsHovered@SWidget@@UEBA_NXZ)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl SWidget::IsInteractable(void)const " (?IsInteractable@SWidget@@UEBA_NXZ)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnAnalogValueChanged(struct FGeometry const &,struct FAnalogInputEvent const &)” (?OnAnalogValueChanged@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFAnalogInputEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl SCompoundWidget::OnArrangeChildren(struct FGeometry const &,class FArrangedChildren &)const " (?OnArrangeChildren@SCompoundWidget@@UEBAXAEBUFGeometry@@AEAVFArrangedChildren@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnControllerAnalogValueChanged(struct FGeometry const &,struct FControllerEvent const &)” (?OnControllerAnalogValueChanged@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFControllerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnControllerButtonPressed(struct FGeometry const &,struct FControllerEvent const &)” (?OnControllerButtonPressed@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFControllerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnControllerButtonReleased(struct FGeometry const &,struct FControllerEvent const &)” (?OnControllerButtonReleased@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFControllerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual class FCursorReply __cdecl SWidget::OnCursorQuery(struct FGeometry const &,struct FPointerEvent const &)const " (?OnCursorQuery@SWidget@@UEBA?AVFCursorReply@@AEBUFGeometry@@AEBUFPointerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnDragDetected(struct FGeometry const &,struct FPointerEvent const &)” (?OnDragDetected@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFPointerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl SWidget::OnDragEnter(struct FGeometry const &,class FDragDropEvent const &)” (?OnDragEnter@SWidget@@UEAAXAEBUFGeometry@@AEBVFDragDropEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl SWidget::OnDragLeave(class FDragDropEvent const &)” (?OnDragLeave@SWidget@@UEAAXAEBVFDragDropEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnDragOver(struct FGeometry const &,class FDragDropEvent const &)” (?OnDragOver@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBVFDragDropEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnDrop(struct FGeometry const &,class FDragDropEvent const &)” (?OnDrop@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBVFDragDropEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl SWidget::OnFinishedKeyInput(void)” (?OnFinishedKeyInput@SWidget@@UEAAXXZ)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl SWidget::OnFinishedPointerInput(void)” (?OnFinishedPointerInput@SWidget@@UEAAXXZ)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl SWidget::OnFocusChanging(class FWeakWidgetPath const &,class FWidgetPath const &)” (?OnFocusChanging@SWidget@@UEAAXAEBVFWeakWidgetPath@@AEBVFWidgetPath@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl SWidget::OnFocusLost(struct FFocusEvent const &)” (?OnFocusLost@SWidget@@UEAAXAEBUFFocusEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnFocusReceived(struct FGeometry const &,struct FFocusEvent const &)” (?OnFocusReceived@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFFocusEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual bool __cdecl SWidget::OnHitTest(struct FGeometry const &,struct FVector2D)” (?OnHitTest@SWidget@@UEAA_NAEBUFGeometry@@UFVector2D@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnKeyChar(struct FGeometry const &,struct FCharacterEvent const &)” (?OnKeyChar@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFCharacterEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnKeyDown(struct FGeometry const &,struct FKeyEvent const &)” (?OnKeyDown@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFKeyEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnKeyUp(struct FGeometry const &,struct FKeyEvent const &)” (?OnKeyUp@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFKeyEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl SWidget::OnKeyboardFocusChanging(class FWeakWidgetPath const &,class FWidgetPath const &)” (?OnKeyboardFocusChanging@SWidget@@UEAAXAEBVFWeakWidgetPath@@AEBVFWidgetPath@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl SWidget::OnKeyboardFocusLost(struct FKeyboardFocusEvent const &)” (?OnKeyboardFocusLost@SWidget@@UEAAXAEBUFKeyboardFocusEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnKeyboardFocusReceived(struct FGeometry const &,struct FKeyboardFocusEvent const &)” (?OnKeyboardFocusReceived@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFKeyboardFocusEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual struct TOptional > __cdecl SWidget::OnMapCursor(class FCursorReply const &)const " (?OnMapCursor@SWidget@@UEBA?AU?$TOptional@V?$TSharedRef@VSWidget@@$0A@@@@@AEBVFCursorReply@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnMotionDetected(struct FGeometry const &,struct FMotionEvent const &)” (?OnMotionDetected@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFMotionEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnMouseButtonDoubleClick(struct FGeometry const &,struct FPointerEvent const &)” (?OnMouseButtonDoubleClick@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFPointerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnMouseButtonDown(struct FGeometry const &,struct FPointerEvent const &)” (?OnMouseButtonDown@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFPointerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnMouseButtonUp(struct FGeometry const &,struct FPointerEvent const &)” (?OnMouseButtonUp@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFPointerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl SWidget::OnMouseCaptureLost(void)” (?OnMouseCaptureLost@SWidget@@UEAAXXZ)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl SWidget::OnMouseEnter(struct FGeometry const &,struct FPointerEvent const &)” (?OnMouseEnter@SWidget@@UEAAXAEBUFGeometry@@AEBUFPointerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl SWidget::OnMouseLeave(struct FPointerEvent const &)” (?OnMouseLeave@SWidget@@UEAAXAEBUFPointerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnMouseMove(struct FGeometry const &,struct FPointerEvent const &)” (?OnMouseMove@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFPointerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnMouseWheel(struct FGeometry const &,struct FPointerEvent const &)” (?OnMouseWheel@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFPointerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FNavigationReply __cdecl SWidget::OnNavigation(struct FGeometry const &,struct FNavigationEvent const &)” (?OnNavigation@SWidget@@UEAA?AVFNavigationReply@@AEBUFGeometry@@AEBUFNavigationEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual int __cdecl SCompoundWidget::OnPaint(class FPaintArgs const &,struct FGeometry const &,class FSlateRect const &,class FSlateWindowElementList &,int,class FWidgetStyle const &,bool)const " (?OnPaint@SCompoundWidget@@UEBAHAEBVFPaintArgs@@AEBUFGeometry@@AEBVFSlateRect@@AEAVFSlateWindowElementList@@HAEBVFWidgetStyle@@_N@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "private: virtual int __cdecl SWidget::OnPaint(struct FGeometry const &,class FSlateRect const &,class FSlateWindowElementList &,int,class FWidgetStyle const &,bool)const " (?OnPaint@SWidget@@EEBAHAEBUFGeometry@@AEBVFSlateRect@@AEAVFSlateWindowElementList@@HAEBVFWidgetStyle@@_N@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnPreviewKeyDown(struct FGeometry const &,struct FKeyEvent const &)” (?OnPreviewKeyDown@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFKeyEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnPreviewMouseButtonDown(struct FGeometry const &,struct FPointerEvent const &)” (?OnPreviewMouseButtonDown@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFPointerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual struct TOptional __cdecl SWidget::OnQueryPopupMethod(void)const " (?OnQueryPopupMethod@SWidget@@UEBA?AU?$TOptional@W4EPopupMethod@@@@anonymous_user_9674a66c)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual struct TOptional __cdecl SWidget::OnQueryShowFocus(enum EFocusCause)const " (?OnQueryShowFocus@SWidget@@UEBA?AU?$TOptional@_N@@W4EFocusCause@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl SWidget::OnToolTipClosing(void)” (?OnToolTipClosing@SWidget@@UEAAXXZ)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnTouchEnded(struct FGeometry const &,struct FPointerEvent const &)” (?OnTouchEnded@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFPointerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnTouchGesture(struct FGeometry const &,struct FPointerEvent const &)” (?OnTouchGesture@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFPointerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnTouchMoved(struct FGeometry const &,struct FPointerEvent const &)” (?OnTouchMoved@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFPointerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual class FReply __cdecl SWidget::OnTouchStarted(struct FGeometry const &,struct FPointerEvent const &)” (?OnTouchStarted@SWidget@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFPointerEvent@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual bool __cdecl SWidget::OnVisualizeTooltip(class TSharedPtr const &)” (?OnVisualizeTooltip@SWidget@@UEAA_NAEBV?$TSharedPtr@VSWidget@@$0A@@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl SCompoundWidget::SetVisibility(class TAttribute)” (?SetVisibility@SCompoundWidget@@UEAAXV?$TAttribute@UEVisibility@@@@@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl SWidget::SupportsKeyboardFocus(void)const " (?SupportsKeyboardFocus@SWidget@@UEBA_NXZ)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl SWidget::Tick(struct FGeometry const &,double,float)” (?Tick@SWidget@@UEAAXAEBUFGeometry@@anonymous_user_5a55714e@Z)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual class FString __cdecl SWidget::ToString(void)const " (?ToString@SWidget@@UEBA?AVFString@@anonymous_user_9674a66c)
1>SMyCompoundWidget.cpp.obj : error LNK2001: unresolved external symbol "public: virtual class TSharedPtr __cdecl SWidget::TranslateMouseCoordinateFor3DChild(class TSharedRef const &,struct FGeometry const &,struct FVector2D const &,struct FVector2D const &)const " (?TranslateMouseCoordinateFor3DChild@SWidget@@UEBA?AV?$TSharedPtr@UFVirtualPointerPosition@@$0A@@@AEBV?$TSharedRef@VSWidget@@$0A@@@AEBUFGeometry@@AEBUFVector2D@@anonymous_user_22cdc7a4@Z)
1>E:\UnrealProjects\TestProject5\Binaries\Win64\UE4Editor-TestProject5-1650.dll : fatal error LNK1120: 68 unresolved externals
This answer does not fit - https://answers.unrealengine.com/questions/210440/bug-unreal-fails-to-add-slate-widget-class.html