-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
better error message when building an exe, not linking libc, and exporting libc main #558
Comments
Were you looking at ziglang.org? I updated the example there to match what was in the examples/ folder. Tell me if that didn't fix it. |
We'll be able to support this smaller example on windows, but first we have to solve #515. |
Yes, I was. Will refresh. As for the sample from examples/ bootstrap.zig appears to get in the way:
|
I think you need This error message could be better, for example we could give the error |
Note that you can also use the normal |
Ok, getting |
See #539. Currently we only look for msvc 2015 but we should look for 2017 as well. Also there are command line args for setting the msvc path at runtime. Look for msvc in the --help menu. |
Example now gives:
|
how to fix this? |
Seems to fail on x86_64, i386 in both GNU and MSVC.
MRE code:
compiler call:
zig build-exe load.zig
output:
C:\msys64\home\ryan\load.zig:3:6: error: no member named 'printf' in '(C import)' c.printf("hello\n");
The text was updated successfully, but these errors were encountered: