Error executing cl.exe (tool returned code: 2)
For me, this was just VS2017 being silly - I uninstalled all packages in the Visual Studio Installer and re-installed the following ones:
I then compiled the engine alone without the project, then the project. The error is gone.
answered Jul 11 '18 at 12:45 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here