# Are public/private circular dependencies between modules not allowed anymore in UE4.26?

**URL:** <https://forums.unrealengine.com/t/are-public-private-circular-dependencies-between-modules-not-allowed-anymore-in-ue4-26/474562>\
**Category:** C++\
**Tags:** modules, buildcs, unreal-engine, question\
**Created:** [November 16, 2020, 2:48pm UTC](https://forums.unrealengine.com/t/are-public-private-circular-dependencies-between-modules-not-allowed-anymore-in-ue4-26/474562 "2020-11-16T14:48:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alessandroTironi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alessandroTironi](https://forums.unrealengine.com/u/alessandroTironi)\
**Post date:** [November 16, 2020, 2:48pm UTC](https://forums.unrealengine.com/t/are-public-private-circular-dependencies-between-modules-not-allowed-anymore-in-ue4-26/474562/1 "2020-11-16T14:48:02Z")

</div>

I updated to 4.26 preview 7 today on a project with a complex modular code architecture (in other words: many Build.cs files, with both public and private dependencies). The project compiles on UE4.25, but on UE4.26p7 I am getting some circular dependencies compile errors. From what I read, it seems like Unreal is treating private module dependencies as public ones, so that a private dependency from module A to module B when a public dependency from B to A alredy exists is not allowed anymore. Is this normal from UE4.26? Am I missing something?

---

<div class="post-metadata">

**Author:** ![Kyle\_lv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kyle\_lv](https://forums.unrealengine.com/u/Kyle_lv)\
**Post date:** [May 14, 2021, 12:15pm UTC](https://forums.unrealengine.com/t/are-public-private-circular-dependencies-between-modules-not-allowed-anymore-in-ue4-26/474562/2 "2021-05-14T12:15:30Z")

</div>

Hi，I meet the same issue these days，did you resolve this problem?

---

<div class="post-metadata">

**Author:** ![alessandroTironi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alessandroTironi](https://forums.unrealengine.com/u/alessandroTironi)\
**Post date:** [May 16, 2021, 9:11am UTC](https://forums.unrealengine.com/t/are-public-private-circular-dependencies-between-modules-not-allowed-anymore-in-ue4-26/474562/3 "2021-05-16T09:11:34Z")

</div>

Hi, unfortunately I ended up doing a massive refactoring of the project’s code to actually avoid circular dependencies. I’m not saying there is no other ways to solve this problem, but I can say that it was not a waste of time, since circular dependencies are generally a bad idea, even if everything seems to work. It’s refactoring work than needed to be done for the sake of my mental health.
