# Generated\_Body macro showing error

**URL:** <https://forums.unrealengine.com/t/generated-body-macro-showing-error/430917>\
**Category:** C++\
**Tags:** macro, unreal-engine, question, CPP\
**Created:** [August 3, 2018, 8:15pm UTC](https://forums.unrealengine.com/t/generated-body-macro-showing-error/430917 "2018-08-03T20:15:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RA\_XtremeGamer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RA\_XtremeGamer](https://forums.unrealengine.com/u/RA_XtremeGamer)\
**Post date:** [August 3, 2018, 8:15pm UTC](https://forums.unrealengine.com/t/generated-body-macro-showing-error/430917/1 "2018-08-03T20:15:22Z")

</div>

In the header file the GENERATED\_BODY() has an error.See the images for more details. I have tried everything - regenerated the project, made a new project, deleted the unreal installation, deleted epic games and installed the latest version of launcher and unreal, updated visual studio but still the error has not been fixed.

 ![249387-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/2/2c233cf04f4d7386f21d2566c441c16ca11b422b.png)

 ![249388-capture1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/d/23dc6456027e15e4650c74787d1bd8f779767f27.png)

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [August 3, 2018, 8:44pm UTC](https://forums.unrealengine.com/t/generated-body-macro-showing-error/430917/2 "2018-08-03T20:44:39Z")

</div>

If you get error in there tht means there something with generated code, or you do something that mess ups UHT.

What error do you get exactly? But please give error from compiler not IntelliSense (aka hover over code)

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [August 3, 2018, 9:56pm UTC](https://forums.unrealengine.com/t/generated-body-macro-showing-error/430917/3 "2018-08-03T21:56:15Z")

</div>

Does it compile?

There is a known bug with IntelliSense marking things that are not an error. (will be fixed in 4.20.2)

---

<div class="post-metadata">

**Author:** ![RA\_XtremeGamer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RA\_XtremeGamer](https://forums.unrealengine.com/u/RA_XtremeGamer)\
**Post date:** [August 6, 2018, 5:35pm UTC](https://forums.unrealengine.com/t/generated-body-macro-showing-error/430917/4 "2018-08-06T17:35:34Z")

</div>

Yes , it does compile.

---

<div class="post-metadata">

**Author:** ![Omnirexen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Omnirexen](https://forums.unrealengine.com/u/Omnirexen)\
**Post date:** [July 20, 2019, 8:02am UTC](https://forums.unrealengine.com/t/generated-body-macro-showing-error/430917/5 "2019-07-20T08:02:35Z")

</div>

Thank you so much for this info, the errors were driving me NUTS!

---

<div class="post-metadata">

**Author:** ![Xenial\_J](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xenial\_J](https://forums.unrealengine.com/u/Xenial_J)\
**Post date:** [October 17, 2019, 1:22pm UTC](https://forums.unrealengine.com/t/generated-body-macro-showing-error/430917/6 "2019-10-17T13:22:24Z")

</div>

In 4.22 (where I still got this problem) I found this fixed it:

Solution Explorer → Right-click your game project → Rescan Solution.

Took about a minute but cleaned up the squiggles.
