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

look for libc at runtime on windows #539

Closed
andrewrk opened this issue Oct 16, 2017 · 4 comments
Closed

look for libc at runtime on windows #539

andrewrk opened this issue Oct 16, 2017 · 4 comments
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase. os-windows
Milestone

Comments

@andrewrk
Copy link
Member

moved from #302

when using zig.exe outside of MSVC command prompt:

C:\Users\andy\tmp>zig.exe build-exe hello_libc.zig --library c
lld: error: could not open libcmtd.lib: no such file or directory
lld: error: could not open vcruntimed.lib: no such file or directory

this should just work if you have MSVC installed.

@andrewrk andrewrk added enhancement Solving this issue will likely involve adding new logic or components to the codebase. os-windows labels Oct 16, 2017
@andrewrk andrewrk added this to the 0.2.0 milestone Oct 16, 2017
@andrewrk
Copy link
Member Author

Workaround right now is to run zig.exe from the VS2015 native tools command prompt.

andrewrk added a commit that referenced this issue Oct 16, 2017
See #539

before we close the issue we should also detect MSVC 2017
but this gets us started with supporting MSVC 2015
@andrewrk
Copy link
Member Author

This is working but we should support VS2017 as well before closing the issue.

@andrewrk
Copy link
Member Author

How rust solved the issue: rust-lang/rust#38584

@andrewrk
Copy link
Member Author

andrewrk commented Nov 1, 2017

solved by @dimenus in 38f05d4

@andrewrk andrewrk closed this as completed Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase. os-windows
Projects
None yet
Development

No branches or pull requests

1 participant