First, if you deleted your intermediates folder, you’re going to need to right-click the .uproject file and Generate Visual Studio Project files to restore the intermediates folder as they are required. After that, please try compiling your project again. If you still receive the “Other Compilation Error (5)” message, then please look at the Output tab instead of the Error List tab. This message means that the compilation error that is occurring is something that the program doesn’t have an error message set up for but you can still see the details of what the problem is in the Output tab.
If you’re still having issues after reading the Output, please copy and paste the Output here and I can try to assist your further.
Can you post the line of code at line 28 in your PickupActor.h? The compilation error is pointing towards that line. Posting the lines around that would be helpful as well, to give context.
I’m having this problem as well. I regenerated my intermediates folder, recompiled, but it failed again because of an error within the standard Actor.h class:
CompilerResultsLog: Info C:/Program Files (x86)/Epic Games/4.12/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h(461) : Unrecognized type 'UChildActorComponent' (in expression TWeakObjectPtr<UChildActorComponent>) - type must be a UCLASS
Is there any way to tweak the code so it works or do I have to reload the class code somehow?
Can you please make a new post about this issue? This is an old post and the “other compilation error(5)” message is a very broad error message for when the compiler doesn’t have an error message related to the problem.