[swift-users] Question on windows version

Eric Wing ewmailing at gmail.com
Fri Nov 18 23:07:22 CST 2016


On 11/17/16, John MacLean via swift-users <swift-users at swift.org> wrote:
> Hello,
>
> I am running Win10 64 and tried the windows version following the
> instructions.   What I do is select the swift file – click compile and I get
> this error
>
> The system cannot find the path specified.
> '"link"' is not recognized as an internal or external command,
> operable program or batch file.
>
> Then I click Run and this error shows
>
> 'C:\SwiftForWindows\My' is not recognized as an internal or external
> command,
> operable program or batch file.
>
> C:\SwiftForWindows>
>
> My screen is setup exactly as the one shown on the help page with the
> animation.
>
> Any help is appreciated.
>
> Thanks,
> John
>

I've only briefly tried the binaries from the other Swift for Windows
web site, and only the underlying command-line swift.exe/swiftc.exe
compiler.

When using the Visual Studio binaries, link.exe is a tool that comes
with Viausl Studio. It is not put in your Windows system path.
Launching the Visual Studio Native Tools command prompt will open a
command prompt that has link.exe in its path. Try launching all your
tools from that command prompt to inherit that environment.

As for the "My" problem, to me, it looks like an escaping problem for
spaces, e.g. "My Program Files"? Quotes or backslashes may be needed.


-Eric


More information about the swift-users mailing list