#Include questions

Hello there,

On Mike’s lesson, he said that the #include Grabber.h should be the one on the bottom of the #include group. However when I do that, Unreal 4.26.1 gives out this error:

I went back to VS Code and put the #include Grabber.h to the top and the errors were gone from the log. Is this behavior expected to this unreal version? OR did i messed up my code somewhere :worried:

interestingly, The error came up on him 5 lessons later (lesson 125). So it is an expected behavior. But my question is that, Why is it a best practice to put the #include Grabber.h to the bottom when unreal doesn’t / or will decide it won’t like it and give out and error?

The .cpp needs the respective header to be included first

yes thanks Dan!

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