# Pointer syntax error on \[UCameraComponent\* name;\] statement

**URL:** <https://forums.unrealengine.com/t/pointer-syntax-error-on-ucameracomponent-name-statement/93741>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [June 5, 2017, 5:49am UTC](https://forums.unrealengine.com/t/pointer-syntax-error-on-ucameracomponent-name-statement/93741 "2017-06-05T05:49:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sempervirens256](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sempervirens256](https://forums.unrealengine.com/u/Sempervirens256)\
**Post date:** [June 5, 2017, 5:49am UTC](https://forums.unrealengine.com/t/pointer-syntax-error-on-ucameracomponent-name-statement/93741/1 "2017-06-05T05:49:37Z")

</div>

Hello, so i have a header file and inside it i’m trying to set up a pointer of type UCameraComponent as a data member, but when i attempt to compile i get the following error:

```auto

Error c:\..\fpsproject\source\fpsproject\FPSCharacter.h(47) : error C2143: syntax error: missing ';' before '*'

```

This is the code causing the error.

```auto

UPROPERTY(VisibleAnywhere)
UCameraComponent* FPSCameraComponent; //Actual line 47

```

I get the same error when trying to make a pointer of type UTextRenderComponent

```auto

UTextRenderComponent* CountdownText;

```

But not when making a pointer of type UParticleSystemComponent

```auto

UParticleSystemComponent* OurParticleSystem;

```

BTW, all of this statements i’m getting from the official docs tutorials. Any ideas on what am i doing wrong? thanks in advance

---

<div class="post-metadata">

**Author:** ![zeOrb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zeOrb](https://forums.unrealengine.com/u/zeOrb)\
**Post date:** [June 5, 2017, 8:02am UTC](https://forums.unrealengine.com/t/pointer-syntax-error-on-ucameracomponent-name-statement/93741/2 "2017-06-05T08:02:40Z")

</div>

If I’m not mistaken Epic excluded a lot of components from basic includes in 4.15 and now you must include manually what you want to use.

```auto

#include "Components/TextRenderComponent.h"

```

---

<div class="post-metadata">

**Author:** ![Sempervirens256](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sempervirens256](https://forums.unrealengine.com/u/Sempervirens256)\
**Post date:** [June 5, 2017, 1:11pm UTC](https://forums.unrealengine.com/t/pointer-syntax-error-on-ucameracomponent-name-statement/93741/3 "2017-06-05T13:11:36Z")

</div>

Oh man, thank you so much! i owe you one :]
