# I’m trying to reparent a plug-in class to a class of another plug-in but I get a compilation error

**URL:** <https://forums.unrealengine.com/t/i-m-trying-to-reparent-a-plug-in-class-to-a-class-of-another-plug-in-but-i-get-a-compilation-error/1189804>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, CPP\
**Created:** [June 5, 2023, 4:57pm UTC](https://forums.unrealengine.com/t/i-m-trying-to-reparent-a-plug-in-class-to-a-class-of-another-plug-in-but-i-get-a-compilation-error/1189804 "2023-06-05T16:57:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DA\_GIUSTINO1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DA\_GIUSTINO1](https://forums.unrealengine.com/u/DA_GIUSTINO1)\
**Post date:** [June 5, 2023, 4:57pm UTC](https://forums.unrealengine.com/t/i-m-trying-to-reparent-a-plug-in-class-to-a-class-of-another-plug-in-but-i-get-a-compilation-error/1189804/1 "2023-06-05T16:57:15Z")

</div>

I have both plug-ins installed in my project Plugins folder, so I can edit them, without making changes to the engine ones. The problem is that when I try to reparent a class1 (that inherits from ACharacter) of the first plug-in to class2 of the second plugin by including class2.h, when I compile it says that class2.generated.h could not be opened because it doesn’t exist. If I remove the include statement, everything compiles fine. Can anybody help me with

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [June 5, 2023, 5:30pm UTC](https://forums.unrealengine.com/t/i-m-trying-to-reparent-a-plug-in-class-to-a-class-of-another-plug-in-but-i-get-a-compilation-error/1189804/2 "2023-06-05T17:30:00Z")

</div>

Hi DA\_GIUSTINO1,

You’ll have to include the other plugins module in the first one, check out:

> [@Plugin dependent on another plugin](https://forums.unrealengine.com/t/plugin-dependent-on-another-plugin/387324/2):
>
> Hi , Sorry for the delayed response to your question. Have you tried adding a “Plugins” section to the .uproject file? Something like this: "Plugins": [ { "Name": "MyPlugin", "Enabled": true }, { "Name": "MyOtherPlugin", "Enabled": true } This will tell the .uproject file to make sure any listed plugins are present when opening the project in the Editor. If they are not included in the project, a notification will pop up to alert you. Does that meet your needs?

---

<div class="post-metadata">

**Author:** ![DA\_GIUSTINO1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DA\_GIUSTINO1](https://forums.unrealengine.com/u/DA_GIUSTINO1)\
**Post date:** [June 8, 2023, 5:10pm UTC](https://forums.unrealengine.com/t/i-m-trying-to-reparent-a-plug-in-class-to-a-class-of-another-plug-in-but-i-get-a-compilation-error/1189804/3 "2023-06-08T17:10:11Z")

</div>

Ok it works, thanks!
