# 新人求助:请问为什么我创建了一个全新的类,但是它编译却会报错

**URL:** <https://forums.unrealengine.com/t/topic/2266482>\
**Category:** 简体中文 (Simplified Chinese)\
**Tags:** c-c, override, c-class-wizard, c-and-bluepri, c-custommeshcomponen, c-and-blueprint, c-error, c-class, build, c-custom-shape, c-programming, c-cone-shape, unreal-engine, CPP, question\
**Created:** [January 8, 2025, 5:54pm UTC](https://forums.unrealengine.com/t/topic/2266482 "2025-01-08T17:54:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![X\_X3](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/x_x3/32/1015268_2.png) [@X\_X3](https://forums.unrealengine.com/u/X_X3)\
**Post date:** [January 8, 2025, 5:54pm UTC](https://forums.unrealengine.com/t/topic/2266482/1 "2025-01-08T17:54:46Z")

</div>

![屏幕截图 2025-01-08 232010](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/f/68ff3acfe23aaafdcaf88c2f4e67da8adaa35273.png)  
我在UE里创建了一个全新的类,什么都没碰过,但是一进来系统就说使用“override”声明的成员函数不能重写基类成员,是不是我的环境出问题了??

---

<div class="post-metadata">

**Author:** ![nimozeng](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nimozeng](https://forums.unrealengine.com/u/nimozeng)\
**Post date:** [January 14, 2025, 3:41am UTC](https://forums.unrealengine.com/t/topic/2266482/2 "2025-01-14T03:41:15Z")

</div>

只看输出里面的

---

<div class="post-metadata">

**Author:** ![Suzukaze\_Vina](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Suzukaze\_Vina](https://forums.unrealengine.com/u/Suzukaze_Vina)\
**Post date:** [April 7, 2025, 8:52am UTC](https://forums.unrealengine.com/t/topic/2266482/3 "2025-04-07T08:52:06Z")

</div>

文档里说只看生成，甚至建议把错误列表给关了  
[https://dev.epicgames.com/documentation/zh-cn/unreal-engine/setting-up-visual-studio-development-environment-for-cplusplus-projects-in-unreal-engine](https://dev.epicgames.com/documentation/zh-cn/unreal-engine/setting-up-visual-studio-development-environment-for-cplusplus-projects-in-unreal-engine)
