Swift on Windows

Hi everyone :wave:

I installed the Swift toolchain for Windows as described here Swift.org - Download Swift
Also have Visual Studio installed.

I get an error if I try to compile a simple hello world file

>>> swift test.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "AssertionReporting.h"
C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\shims/AssertionReporting.h:16:10: note: in file included from C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\shims/AssertionReporting.h:16:
#include "SwiftStdint.h"
C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\shims/SwiftStdint.h:28:10: error: 'stdint.h' file not found
#include <stdint.h>
<unknown>:0: error: could not build C module 'SwiftShims'

Any ideas what may have gone wrong ? I am on Windows 10
Thank you ! :slightly_smiling_face:

Terms of Service

Privacy Policy

Cookie Policy