Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows install instructions should make it obvious that you need to install Visual Studio #763

Open
al45tair opened this issue Jul 17, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@al45tair
Copy link
Contributor

al45tair commented Jul 17, 2024

The Windows install page does not make it sufficiently obvious that installing Visual Studio is a prerequisite for a working Swift install. If you're using winget, of course, this happens automatically and there is no problem, but if you are using the GUI installer, which is what most people will reach for by default, that is not the case.

Yes, for the release version, there is an instructions link just under the installer link, but there is no indication on the page itself that just installing using the GUI installer will not be sufficient (or that using winget might be advantageous, in spite of requiring the use of the command prompt).

The symptoms you get when you try to use Swift without Visual Studio installed are perplexing for a new user of Swift; you see errors like

26 | // __UINTxx_TYPE__ are defined only since Clang 3.5.
27 | #if !defined(__APPLE__) && !defined(__linux__) && !defined(__OpenBSD__) && !defined(__wasi__)
28 | #include <stdint.h>
   |          `- error: 'stdint.h' file not found
29 | typedef int64_t __swift_int64_t;
30 | typedef uint64_t __swift_uint64_t;

when trying to build a simple program (even the default generated by swift package init --type executable, actually), and the cause is not obvious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants