Including a .h that also includes current .h

Is it not possible to include an .h that also includes that .h?

AFile.h includes BFile.h
but BFile.h also includes AFile.h
It is possible to have a UPROPERTY of type UAFile in AFile.h though…

Will I just have to work around this limitation?

You can forward declare your classes, I’d look up a tutorial somewhere but here’s the basics:

You can’t include the .h files in each other, since that will cause a loop

You can however include them in the .cpp files.

Provided you don’t need to interact with the classes from the other .h in your .h, you just need to create the variables, you can instead declare a class with the same name so the first class knows it exists

AFile.H:

//cant #include "BFile.h"

class BClass;

class AClass{

BClass OtherClass;
};

BFile.h:

//cant #include "AFile.h"

class AClass;

class BClass{

AClass OtherClass;
};

This way you can setup variables in your header as normal then make use of them by including the other header in your .cpp

Can you show me what you are trying to do exactly?

Doesn’t seem to be working. The file I want to include has structures that I want to access. I don’t know what I am doing wrong because it says it doesn’t recognise the structure

What you’re doing is called a circular dependency and won’t work. To compile the first class the compiler will need to know about the second which in turn needs to know about the first…
As Harry mentioned you can used forward declaration, but to do this you need have only either pointers or reference to the other class, otherwise it won’t change anything.

That’s a complex issue which is usually a design issue, you should try to organize your classes dependencies differently.
This thread on stack overflow explains all the ways to solve your issue, hope that helps!