So, my colleague in australia checked in some files into our repo. I got the changes from the repo (subversion, but it doesn’t matter). He’s move some source files from /Classes/ to /Public/ which AFAIK is meant to be OK now right? Only now when I build, I get an error because of an undefined type, which seems to be, after a bit of digging, because the build system isn’t auto-generating a list of forward declarations for all of the types for the project into the intermediate folder.
So my question is… how in the hell am I supposed to find a fix for that, other than simply rolling back the repo?
Anyone know what is actually happening with how the build process works with UBT/UHT? I am assuming they’re going through all the source files and generating files for the classes they see.
I see a GroundBranchClasses.h file in Intermediate/Build/Win64/UE4Editor/Inc/ in a local copy of my old repo, which has all my classes header files #include’d declared in it…
In the same file with my new repo, I see a file with just a comment and pragma once in it.
So clearly, there’s something that should be generating the same stuff in the <Projectname>Classes.h file that isn’t because the files are in /Public/ and not in /Classes/ from what I can gather.
So I guess the next question is… how do I specify that UHT should actually generate that file properly? What is causing the failure there?
Do I really have to dig into the source code of the UHT? I guess I do don’t I.
Please save me. I find this kind of compiler stuff so insanely annoying