![]() ![]() "C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swiftc.exe" -frontend -c -primary-file main.swift -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk "C:\Library\Developer\Platforms\atform\Developer\SDKs\Windows.sdk" -color-diagnostics -I "C:\Library\Developer\Platforms\atform\Developer\SDKs\Windows.sdk/usr/lib/swift" -autolink-library oldnames -autolink-library msvcrt -Xcc -D_MT -Xcc -D_DLL -module-name main -o "C:\Users\Costin\AppData\Local\Temp\main-d3bd06.o" "C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swiftc.exe" -frontend -c -primary-file main.swift -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk "C:\Library\Developer\Platforms\atform\Developer\SDKs\Windows.sdk" -color-diagnostics -I "C:\Library\Developer\Platforms\atform\Developer\SDKs\Windows.sdk/usr/lib/swift" -autolink-library oldnames -autolink-library msvcrt -Xcc -D_MT -Xcc -D_DLL -module-name main -o "C:\Users\Costin\AppData\Local\Temp\main-bb5632.o"Į[1m:0: e[0me[0 1 31merror: e[0me[1mcannot load underlying module for 'WinSDK'īut if I try to import another say import Swift or import SwiftOnoneSupport it all compiles well:Į:\swiftCode\Project1>set SDKROOT=C:\Library\Developer\Platforms\atform\Developer\SDKs\Windows.sdkĮ:\swiftCode\Project1>set SWIFTFLAGS=-sdk C:\Library\Developer\Platforms\atform\Developer\SDKs\Windows.sdk -I C:\Library\Developer\Platforms\atform\Developer\SDKs\Windows.sdk/usr/lib/swift -L C:\Library\Developer\Platforms\atform\Developer\SDKs\Windows.sdk/usr/lib/swift/windowsĮ:\swiftCode\Project1>swiftc -v -o main.exe main.swift -sdk C:\Library\Developer\Platforms\atform\Developer\SDKs\Windows.sdk -I C:\Library\Developer\Platforms\atform\Developer\SDKs\Windows.sdk/usr/lib/swift -L C:\Library\Developer\Platforms\atform\Developer\SDKs\Windows.sdk/usr/lib/swift/windows ![]() Swiftc -v -o main.exe main.swift %SWIFTFLAGS%Īnd when I try to compile it using the 5.2.1 toolchain from the github /swift-build releases page it shows this error about not being able to load the underlying WinSDK module:Ĭ Swift version 5.2.2-dev (Swift a543bfba1b) Set SWIFTFLAGS=-sdk %SDKROOT% -I %SDKROOT%/usr/lib/swift -L %SDKROOT%/usr/lib/swift/windows With this batch file: set SDKROOT=C:\Library\Developer\Platforms\atform\Developer\SDKs\Windows.sdk I have a simple main.swift import Foundation ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |