-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Exit code 5 on Windows compiling external C API #13022
Comments
-pub extern "c" fn signal(sig: c_int, handler: fn (c_int, c_int) callconv(.C) void) *anyopaque;
+pub extern "c" fn signal(sig: c_int, handler: *const fn (c_int, c_int) callconv(.C) void) *anyopaque; |
-fn interruptFn(_: c_int, _: c_int) callconv(.C) void {}
+export fn interruptFn(_: c_int, _: c_int) void {} |
@nektro Hey that was amazingly fast! I'll give it a try and many thanks for your superfast help!! Yea it works... issue solved within <<60s ... wooowww!! |
That example should not compile. |
yeah the issue should stay open since it should report a compile error instead of crash. i was only providing guidance on a workaround @nekrondev :) |
Yep.. ACK on that (error messages are always helpful but great community is the best)! |
Zig Version
0.10.0-dev.4197+9a2f17f9f
Steps to Reproduce
zig build
on Windows 10 OS the following programbuild.zig:
main.zig:
Expected Behavior
Executable binary will be build without issues (this was working back when I was using zig in July 2022).
Actual Behavior
The text was updated successfully, but these errors were encountered: