# postprocessingComponent c++ linking error

**URL:** <https://forums.unrealengine.com/t/postprocessingcomponent-c-linking-error/474767>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [November 20, 2020, 5:28pm UTC](https://forums.unrealengine.com/t/postprocessingcomponent-c-linking-error/474767 "2020-11-20T17:28:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ambience\_Lee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ambience\_Lee](https://forums.unrealengine.com/u/Ambience_Lee)\
**Post date:** [November 20, 2020, 5:28pm UTC](https://forums.unrealengine.com/t/postprocessingcomponent-c-linking-error/474767/1 "2020-11-20T17:28:22Z")

</div>

As the title says, when creating a child class of UPostProcessingComponent, I got a linking error when building. am i missing a module?  
I realized that the linker cannot find these 3 functions:

```
void UPostProcessComponent::OnRegister();
void UPostProcessComponent::OnUnregister();
void UPostProcessComponent::Serialize(FArchive& Ar);

```

I also found that they are in the UnrealClient.cpp file, which is in the Engine module, however, the engine module is already included, is it possible that this part of the translation unit is not included because of some Preprocessor Directives? and why are they not in the PostProcessComponent.cpp file? Will I have to specify a target platform or something?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Ambience\_Lee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ambience\_Lee](https://forums.unrealengine.com/u/Ambience_Lee)\
**Post date:** [November 22, 2020, 4:15am UTC](https://forums.unrealengine.com/t/postprocessingcomponent-c-linking-error/474767/2 "2020-11-22T04:15:51Z")

</div>

My current solution is to just copy the implementation to the .cpp file of the child class so the linker can find it… seems like the wrong way of doing it…

---

<div class="post-metadata">

**Author:** ![user\_a1fb0dabd7e126701b27462c59e23b22383a026cfa379e3d8d0f23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_a1fb0dabd7e126701b27462c59e23b22383a026cfa379e3d8d0f23](https://forums.unrealengine.com/u/user_a1fb0dabd7e126701b27462c59e23b22383a026cfa379e3d8d0f23)\
**Post date:** [August 23, 2024, 4:43am UTC](https://forums.unrealengine.com/t/postprocessingcomponent-c-linking-error/474767/3 "2024-08-23T04:43:14Z")

</div>

you need to add ENGINE\_API to these function at the front
