I recently tried to use Swift on my Windows machine after an update. It worked fine before the update, but I hadn't tried it in about a month or two. I got strange linker errors about not being able to locate things like memcpy. One thing I decided to try was updating Visual Studio, and now I get a different error:
lld-link: error: msvcrt.lib(chkstk.obj): machine type x86 conflicts with x64
Has anyone else encountered this? What could be causing it?
It's worth noting that I am still on 6.1, not 6.2, but I'm unconvinced that updating Swift would fix the error.
The error there is very literal -- it's trying to link together x64 code with x86 code into the same binary and failing. It's been a little while since I've used Swift on Windows, so this probably won't fix it, but have you tried running swift from the x64 Native Tools prompt?