why would every single include fail suddenly?

i created a new class, everything worked excepted it said the generate.h couldnt be found, weird since thats basically itself but ive had this before, gave the project a clean/rebuild and now every include in every file cant be found :open_mouth:

tried all the usual, delete non essential directories, regenerate, rebuild and non change.

i’ll just start a new project not too big a deal but why would that happen?

Could it be Live Coding sabotage? It tends to break c++ projects if enabled.
Also if the header & cpp are in it’s in a sub directory then you sometimes have to add them to the build file directory list for them to be seen correctly.

Even though it seems like the generated file of the same file should automatically be found it actually lives in the Intermediate folder and not the source folder.

Also make sure the your .h and .cpp files are in source. Unreal can sometimes dump them in the intermediate folder by accident, then they will not generate a generated file and what’s worse may get deleted during a rebuild.

oh i disable live coding instantly, even if its works it slows everything down and i usually need to restart anyway.

whats weird is i only added one new class and it broke all my other classes that had compiled so its definitely not build or header related

Could it be that the class used maybe a reserved word that caused some havoc on the compile process?

1 Like

interesting, i havent tried just deleting the new class but thats a tomorrow problem. will update then.

thanks

So the problem was a corrupted build file,
why it was corrupted since i didn’t use it, no idea
why it started working again after 3 attempts at checking it… also no idea ha

1 Like

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