You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When zig translate-c is run on a file that has an entrypoint (such as main), the signature does not match the one expected by zig's start code.
/home/daurnimator/src/zig/lib/std/start.zig:258:17: error: expected return type of main to be 'void', '!void', 'noreturn', 'u8', or '!u8'
@compileError(bad_main_ret);
^
Should we add support for the traditional C entry point signatures?
The text was updated successfully, but these errors were encountered:
andrewrk
added
the
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
label
Jan 2, 2020
andrewrk
changed the title
translate-c and entry points
make translate-c translate "main" into something that start code will recognize properly
Jan 2, 2020
andrewrk
removed
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
standard library
This issue involves writing Zig code for the standard library.
translate-c
C to Zig source translation feature (@cImport)
labels
Jan 4, 2020
Originally found by @daurnimator in #988 (comment)
When
zig translate-c
is run on a file that has an entrypoint (such asmain
), the signature does not match the one expected by zig's start code.Should we add support for the traditional C entry point signatures?
The text was updated successfully, but these errors were encountered: