This project has moved. For the latest updates, please go here.

Doesn't run compiler

Sep 10, 2016 at 4:06 AM
Edited Sep 11, 2016 at 3:33 PM
I'm using windows 10

I tried creating a simple hello world program under Documents\swift

But the compiler UI tells me off saying I'm only allowed to compile programs which are located in

c:\SwiftForWindows\My Programs\

However when I try to compile on that path the command line window returns


'"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"' is not recognized as an internal or external command,
operable program or batch file.
'"link"' is not recognized as an internal or external command,
operable program or batch file.

I have Visual Studio Community installed.

Also if I simply choose "Run" to use the interpreter I get:

'C:\SwiftForWindows\My' is not recognized as an internal or external command,
operable program or batch file.

clearly the UI is not passing the file path to the compiler properly

How can I fix this?

Solved it:

Go back to Microsoft Visual Studio and modify the installation - check everything C++ related that says "tools" next to it and it will compile and run. Run won't work until you've compiled something - it's not an interpreter as I first thought.