If you add a class to a project that had no code, then remove that class and try to build the project it fails. The failure is because a ‘generated.inl’ include file is not generated because there are no custom classes.
NOTE: This only happens if ALL custom classes are removed. As long as you have at least one custom class it will generate a proper ‘generated.inl’ include file.
Steps to reproduce:
- Create a new Blank project without starter content.
- Select File → Add Code to Project…
- Choose Actor → Select Next.
- Name the Actor. (I used Test)
- Select ‘Create Class’.
- When prompted to edit code now select ‘Yes’.
- Close Unreal Editor.
- Remove Test.cpp and Test.h from the Solution.
- Open a file explorer and find both Test.cpp and Test.h files inside of your project’s Source folder and delete them from the disk.
- Back in VS2013 select ‘Build’ → ‘Clean Solution’
- After that is done cleaning the solution select ‘Build’ → ‘Build Solution’