# Why my Cpp class has such error?

**URL:** <https://forums.unrealengine.com/t/why-my-cpp-class-has-such-error/1242940>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question, CPP\
**Created:** [July 28, 2023, 3:27pm UTC](https://forums.unrealengine.com/t/why-my-cpp-class-has-such-error/1242940 "2023-07-28T15:27:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![justinpopo1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/justinpopo1/32/623234_2.png) [@justinpopo1](https://forums.unrealengine.com/u/justinpopo1)\
**Post date:** [July 28, 2023, 3:27pm UTC](https://forums.unrealengine.com/t/why-my-cpp-class-has-such-error/1242940/1 "2023-07-28T15:27:06Z")

</div>

This is my first time to create a cpp class in a blueprint project. And then it instructed me to compile this class. But when I open the source code. Just…red wavy line.  
 ![CPPActor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/b/aabd19ff051962b6f78c62d5acbdcbe61c65d9e9.png)

---

<div class="post-metadata">

**Author:** ![anon42830630](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon42830630](https://forums.unrealengine.com/u/anon42830630)\
**Post date:** [July 28, 2023, 3:35pm UTC](https://forums.unrealengine.com/t/why-my-cpp-class-has-such-error/1242940/2 "2023-07-28T15:35:34Z")

</div>

There is two A at down (public AActor) it’s normal ?
