I have been trying to get a start with swift(coming from Rust) on Windows. I have had several problems building a number of examples posted but have one problem that is consistent across them all. I get the following error:
Failed to load TodoKit/Package.swift: 'todokit': error: invalidManifestFormat(":1:10: note: in file included from :1:\r\r\n#include "LibcOverlayShims.h"\r\r\n ^\r\r\nC:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\shims/LibcOverlayShims.h:27:10: error: 'errno.h' file not found\r\r\n#include <errno.h>\r\r\n ^\r\r\n:0: error: could not build C module 'SwiftOverlayShims'", diagnosticFile: nil)
error: fatalError
It would seem to me that I need to add to the manifest the include directory C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\ which contains the errno.h
This seems like an installation issue. Did you accidentally install Swift before Visual Studio? Running the repair from add/remove programs should hopefully repair that.
No I had been using Visual Studio 2019 for a number of years before trying Swift. I have reinstalled both environments several times with Swift being the last.
It is curious about error.h not found. If that is a real error when swift build is executed I wonder
What is the implicit environment for finding local resources
How do I add local resources. Most of the examples I see involve add local package rather the elements like mvsc include files