# Unreal 4.24 'USE\_RTTI' is not defined as a preprocessor macro

**URL:** <https://forums.unrealengine.com/t/unreal-4-24-use_rtti-is-not-defined-as-a-preprocessor-macro/459396>\
**Category:** Plugins\
**Tags:** UE4-24, unreal-engine, Plugins, UE4, CPP, question\
**Created:** [December 11, 2019, 6:50pm UTC](https://forums.unrealengine.com/t/unreal-4-24-use_rtti-is-not-defined-as-a-preprocessor-macro/459396 "2019-12-11T18:50:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nonlin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nonlin](https://forums.unrealengine.com/u/Nonlin)\
**Post date:** [December 11, 2019, 6:50pm UTC](https://forums.unrealengine.com/t/unreal-4-24-use_rtti-is-not-defined-as-a-preprocessor-macro/459396/1 "2019-12-11T18:50:39Z")

</div>

Trying to upgrade a plugin for use in 4.24 and I’ve gotten to this point where I get

> games\ue\_4.24\engine\source\thirdparty\physx3\apex\_1.4\include\ApexDefs.h(54):  
> error C4668: ‘USE\_RTTI’ is not defined  
> as a preprocessor macro, replacing  
> with ‘0’ for ‘#if/#elif’

I’ve gone in and added the bUseRTTI = true to every Build.cs I have but the issue persists.

I’m not sure what is going on to cause USE\_RTTI to not be defined.

I’ve also regenerated project files after deleting Intermediate folders and Binaries for both plugin and project.

---

<div class="post-metadata">

**Author:** ![StevePeters](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StevePeters](https://forums.unrealengine.com/u/StevePeters)\
**Post date:** [August 28, 2020, 12:45am UTC](https://forums.unrealengine.com/t/unreal-4-24-use_rtti-is-not-defined-as-a-preprocessor-macro/459396/2 "2020-08-28T00:45:17Z")

</div>

The solution was posted here:  
[https://forums.unrealengine.com/development-discussion/c-gameplay-programming/1701696-stuck-on-uninformative-error](https://forums.unrealengine.com/development-discussion/c-gameplay-programming/1701696-stuck-on-uninformative-error)

Finally managed to solve the issue, it was crying because I did #include “Actor.h” instead of #include “GameFramework/Actor.h”

---

<div class="post-metadata">

**Author:** ![SagaXXI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SagaXXI](https://forums.unrealengine.com/u/SagaXXI)\
**Post date:** [September 21, 2020, 7:20am UTC](https://forums.unrealengine.com/t/unreal-4-24-use_rtti-is-not-defined-as-a-preprocessor-macro/459396/3 "2020-09-21T07:20:26Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![Unreolog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Unreolog](https://forums.unrealengine.com/u/Unreolog)\
**Post date:** [June 14, 2021, 11:36pm UTC](https://forums.unrealengine.com/t/unreal-4-24-use_rtti-is-not-defined-as-a-preprocessor-macro/459396/4 "2021-06-14T23:36:02Z")

</div>

Thanks! It helped me when I try to upgrade to 4.27

---

<div class="post-metadata">

**Author:** ![ElliottHL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ElliottHL](https://forums.unrealengine.com/u/ElliottHL)\
**Post date:** [July 27, 2021, 4:53am UTC](https://forums.unrealengine.com/t/unreal-4-24-use_rtti-is-not-defined-as-a-preprocessor-macro/459396/5 "2021-07-27T04:53:47Z")

</div>

For anyone visiting this page and not seeing any responses, the solution for me was to check the imports for standard c++ libraries - in my case I was importing the standard string library which was causing problems.

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [August 5, 2023, 11:16pm UTC](https://forums.unrealengine.com/t/unreal-4-24-use_rtti-is-not-defined-as-a-preprocessor-macro/459396/6 "2023-08-05T23:16:02Z")

</div>

Thank you, that was the reason.  
In my case it was thanks to Rider that sometimes feels like adding headers without asking (It’s not the first time that it happens and it’s so frustrating, because you don’t know in which file it’s happening!)
