> For the complete documentation index, see [llms.txt](https://docs.oserosuite.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.oserosuite.com/technical-notes/unreal-engine-notes/compile-errors/circular-dependency-detected.md).

# Circular Dependency Detected

### Error <a href="#error" id="error"></a>

```
Cicular Dependency Detected
```

### Cause <a href="#cause" id="cause"></a>

In some cases, it might be because a class is defined/forward declared without it being defined.

```cpp
virtual TArray<class USH_RV2_SplineComponent*> GetSplineSectionPaths();
```

In this case, `USH_RV2_SplineComponent` was not defined anywhere, and the class that this array was in had an Interface that thought this was a circular dependency.

### Fix <a href="#fix" id="fix"></a>

Make sure the correct #includes are added so that there is no “circular dependency”.

```cpp
#include "Components/SH_RV2_SplineComponent.h"
```

### Notes <a href="#notes" id="notes"></a>

* When I deleted the Binaries/Intermediate folders and regenerated fresh, this error becamse an “undefined class” error. The notes here are to remind me to check other errors because the initial error may not be what’s actually causing this error.
