'error C2065: "AClass": undeclared identifier' appeared but header file still #included?

Hi All

I’ve got this error- as if I haven’t included the header file for the class and the compiler can’t tell what it is. The code that it’s suddenly having a problem with has been in the project for a while, and has compiled many times. Anyone know what could cause this?

Thanks!!

There was a circular dependency created by a new class that I’d made, that didn’t inherit from anything. I remade the class, inheriting from UObject- and then the compiler gave the circular dependency error. Moved the new include to the cpp file and it’s sorted.