Error code 2, what it is?

Error 1 error code: 2 D:\BayuTitip\elithius_branch_mirsabayu\Intermediate\ProjectFiles\Error Elithius
Error 2 error MSB3073: The command “D:\BayuTitip\UE4Fork\Engine\Build\BatchFiles\Build.bat ElithiusEditor Win64 Development “D:\BayuTitip\elithius_branch_mirsabayu\Elithius.uproject”” exited with code -1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 38 5 Elithius

Is there any other information, or any error shown in Visual Studio->View->Error List?

This happens (don’t know it its the only time) when you miss the X.generated.h #include. The full output has a more verbose error telling you what the problem is, the summarized error list just the “error code 2”.

1 Like

Wow that is asinine. There should be a better error message for this.

Having said that, I can confirm that the answer by theonecalledtom has worked for me on two separate occasions.