# LNK2019/1120 error when using FMoveCursor::Cardinal or ViaScreenPointer static function

**URL:** <https://forums.unrealengine.com/t/lnk2019-1120-error-when-using-fmovecursor-cardinal-or-viascreenpointer-static-function/1731480>\
**Category:** UI\
**Tags:** lnk2019, linker-error, unreal-engine, slate, CPP, question\
**Created:** [March 5, 2024, 11:06am UTC](https://forums.unrealengine.com/t/lnk2019-1120-error-when-using-fmovecursor-cardinal-or-viascreenpointer-static-function/1731480 "2024-03-05T11:06:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shue\_it](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shue\_it](https://forums.unrealengine.com/u/shue_it)\
**Post date:** [March 5, 2024, 11:06am UTC](https://forums.unrealengine.com/t/lnk2019-1120-error-when-using-fmovecursor-cardinal-or-viascreenpointer-static-function/1731480/1 "2024-03-05T11:06:19Z")

</div>

Hello there,

I’m currently trying to implement a custom EditableText, and at one point I want to auto select the next character. After digging in the source code, I found the function MoveCursor of FSlateEditableTextLayout ([FSlateEditableTextLayout::MoveCursor | Unreal Engine 5.2 Documentation](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Slate/Widgets/Text/FSlateEditableTextLayout/MoveCursor/)), which take a FMoveCursor as parameter ([FMoveCursor | Unreal Engine 5.2 Documentation](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Slate/Widgets/Text/FMoveCursor/)).

This class has 2 static functions which act as constructors : Cardinal and ViaScreenPointer. FMoveCursor::Cardinal seems to be what I want, so I wrote the following line, inside my custom SEditableText class (which inherit from SEditableText) :

```auto
EditableTextLayout->MoveCursor(FMoveCursor::Cardinal(ECursorMoveGranularity::Character, FIntPoint(0, 1), ECursorAction::SelectText));

```

Problem here, I get a link error :

```auto
 LNK2019: unresolved external symbol "public: static class FMoveCursor __cdecl FMoveCursor::Cardinal(enum ECursorMoveGranularity,struct UE::Math::TIntPoint<int>,enum ECursorAction)" (?Cardinal@FMoveCursor@@SA?AV1@W4ECursorMoveGranularity@@U?$TIntPoint@H@Math@UE@@W4ECursorAction@@@Z) referenced in function "public: virtual void__cdecl SEditableTextCustomSuppr::OnTextChanged(class FText const &)" (?OnTextChanged@SEditableTextCustomSuppr@@UEAAXAEBVFText@@@Z))

```

First reaction : check the module and dependencies in Build.cs, and everything seems to be fine. FMoveCursor is in Slate module, and it’s written in my Build.cs :

```auto
PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });

```

This post ([Unresolved External Symbols](https://forums.unrealengine.com/t/unresolved-external-symbols/436055)) is mentionning the possible missing extern, which indeed I’m not seeing here in the source code :  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/5/fc54a29cb1aa413d2ca156ffb4a0720098b77b28.png)

But is it really this problem ? If so, do I have another solution than editing the Engine code by adding SLATE\_API before the class name ?

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Hynade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hynade](https://forums.unrealengine.com/u/Hynade)\
**Post date:** [March 6, 2025, 9:06pm UTC](https://forums.unrealengine.com/t/lnk2019-1120-error-when-using-fmovecursor-cardinal-or-viascreenpointer-static-function/1731480/2 "2025-03-06T21:06:14Z")

</div>

Same issue here, I am trying to make a custom RichTextBlock which allows text selection but stumbled into the FMoveCursor linker issue, have you ever found out how to fix it ?
