# LNK 2019 CreateChildActor

**URL:** <https://forums.unrealengine.com/t/lnk-2019-createchildactor/298786>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [November 11, 2014, 11:27pm UTC](https://forums.unrealengine.com/t/lnk-2019-createchildactor/298786 "2014-11-11T23:27:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Illusive\_S](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Illusive\_S](https://forums.unrealengine.com/u/Illusive_S)\
**Post date:** [November 11, 2014, 11:27pm UTC](https://forums.unrealengine.com/t/lnk-2019-createchildactor/298786/1 "2014-11-11T23:27:58Z")

</div>

doing

```
UnitDisplayer->CreateChildActor();

```

getting:

LNK2019: unresolved external symbol “public: void \_\_cdecl UChildActorComponent::CreateChildActor(void)” (?CreateChildActor@UChildActorComponent@@QEAAXXZ) referenced in function “public: virtual void \_\_cdecl AMyCharacter::BeginPlay(void)” (?BeginPlay@AMyCharacter@@UEAAXXZ) C:\Users\Illusive\Documents\Unreal Projects\FormationsPrototype\Intermediate\ProjectFiles\MyCharacter.cpp.obj FormationsPrototype

Any ideas?

---

<div class="post-metadata">

**Author:** ![VSZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Post date:** [December 19, 2014, 7:18pm UTC](https://forums.unrealengine.com/t/lnk-2019-createchildactor/298786/2 "2014-12-19T19:18:49Z")

</div>

Check out below threads on the same topic.

The gist is that CreateChildActor isn’t accessible, call childActorComponent-\>OnComponentCreated(); instead. The child actor should be automatically created but isn’t because of a bug.

> **[OnComponentCreated not called when using CreateDefaultSubobject?](https://forums.unrealengine.com/questions/41202/oncomponentcreated-not-called-when-using-createdef.html)**
>
> OnComponentCreated is called as part of the Spawn process. In AActor::PostSpawnInitialize we dispatch the OnComponentsCreated call which does the set up, then they get registered. If you want to manipulate the ChildActor from the owning Actor in...

> **[Unresolved externals error with UChildActorComponent::CreateChildActor();](https://forums.unrealengine.com/questions/90283/unresolved-externals-error-with-uchildactorcompone.html)**
>
> Hello, So I’m trying to add components in C++, but in OnConstruction(), which is equivalent to the construction script in BP. I want to display temporary stuff by spawning some components whenever the user moves the BP actor in the scene. Inside...

> **[UChildComponentActor-\>CreateChildActor Compile Error](https://forums.unrealengine.com/questions/101002/uchildcomponentactor-createchildactor-compile-erro.html)**
>
> I’m trying to replicate this tutorial to C++ based project. I have successfully do it in Blue Print before. I’m stuck on imitating the SetViewTargetWithBlend() function. On proper inspection I found that the ChildActor that i throw to that function...
