# Undeclared identifier even though header file is included?

**URL:** <https://forums.unrealengine.com/t/undeclared-identifier-even-though-header-file-is-included/488658>\
**Category:** C++\
**Tags:** dependencies, unreal-engine, CPP, question\
**Created:** [September 11, 2021, 10:55am UTC](https://forums.unrealengine.com/t/undeclared-identifier-even-though-header-file-is-included/488658 "2021-09-11T10:55:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbabdeb5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbabdeb5](https://forums.unrealengine.com/u/anonymous_user_fbabdeb5)\
**Post date:** [September 11, 2021, 10:55am UTC](https://forums.unrealengine.com/t/undeclared-identifier-even-though-header-file-is-included/488658/1 "2021-09-11T10:55:14Z")

</div>

So i currently have a struct that has a member of “ABaseCharacter” class. And for whatever reason i keep getting undeclared identifier error even though i already included its header file.

 ![348427-halp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/9/7b971b38b213c29de23319bc1d1dd5f7fd86c802.png)

 ![348428-halp2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/3/4632a6f6b999b53aa88ea4f915d0c30147c80ba1.png)

The thing is, in the same file, i have another struct that has a member of “ABaseWeapon” Class. And it works just fine. Is there any dependency stuff that i’m missing here?

 ![348429-halp3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/5/b557712c9ea3c6f35b0e4d8cf7b38a1dd22fca51.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbabdeb5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbabdeb5](https://forums.unrealengine.com/u/anonymous_user_fbabdeb5)\
**Post date:** [September 14, 2021, 7:56am UTC](https://forums.unrealengine.com/t/undeclared-identifier-even-though-header-file-is-included/488658/2 "2021-09-14T07:56:09Z")

</div>

Turns out this is just a circular dependency issue. Closing this down.
