# Pointer to incomplete class is not allowed on UInputComponent pointer in class derived from ACharacter

**URL:** <https://forums.unrealengine.com/t/pointer-to-incomplete-class-is-not-allowed-on-uinputcomponent-pointer-in-class-derived-from-acharacter/395900>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, Visual-Studio, CPP, question\
**Created:** [June 8, 2017, 6:55pm UTC](https://forums.unrealengine.com/t/pointer-to-incomplete-class-is-not-allowed-on-uinputcomponent-pointer-in-class-derived-from-acharacter/395900 "2017-06-08T18:55:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![anonymous\_user\_e93164e4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e93164e4](https://forums.unrealengine.com/u/anonymous_user_e93164e4)\
**Post date:** [June 8, 2017, 7:57pm UTC](https://forums.unrealengine.com/t/pointer-to-incomplete-class-is-not-allowed-on-uinputcomponent-pointer-in-class-derived-from-acharacter/395900/2 "2017-06-08T19:57:10Z")

</div>

Since you are in the .cpp file you do not declare forward with the “class” just leave it out. And of cource include InputComponent in the .cpp file.

---

_[View the full topic](https://forums.unrealengine.com/t/pointer-to-incomplete-class-is-not-allowed-on-uinputcomponent-pointer-in-class-derived-from-acharacter/395900)._
