"Could not be compiled, try rebuilding from source manually", when trying to migrate a project to another platform

this is what I get:

Running C:/Program Files/Epic Games/UE_4.21/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Win64 -Project="" -TargetType=Editor -Progress -NoHotReloadFromIDE
    Performing full C++ include scan (building a new target)
    Creating makefile for [ProjectName]Editor (no existing makefile)
    Using Visual Studio 2017 14.16.27023 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023) and Windows 10.0.15063.0 SDK ().
    @progress push 5%
    Parsing headers for[ProjectName]Editor
      Running UnrealHeaderTool "C:\Users\user\Desktop\test\[ProjectName]r.uproject" "" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
    Reflection code generated for [ProjectName]Editor in 28,2147822 seconds
    @progress pop
    Building 51 actions with 4 processes...

(Starts compiling)

      @progress 'Compiling C++ source code...' 27%
      [14/51] SkillItem.gen.cpp
      C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\INCLUDE\excpt.h(14): error C2059: Sintax error: 'cadena'
      C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\INCLUDE\excpt.h(14): error C2334: unnexpected symbols (token)
      \include\10.0.15063.0\shared\windef.h(17): error C2059: Sintax error: 'cadena'

(More errors keep showing)

Then, Compiling fails.