Why does this happen every time I add a new library

A lot of the times when I add a new library to my code I get a lot of red squiggles, and when I try to compile in unreal, it shows some errors that say: “Expected (any header file) to be first header included” and says that the error is in my cpp files. Why does this happen and how can I fix this?

Because the new build settings require the respective header of a class to be included first i.e. MyClass.cpp would need MyClass.h to be included first.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms