add -lc flag to example so it works on OSes that don't use libc by default

This commit is contained in:
Daniel Hooper 2024-11-09 10:32:35 -08:00
parent 312c6aef6e
commit a86bc2d3c6

View File

@ -6819,7 +6819,7 @@ int main(int argc, char **argv) {
}
{#end_syntax_block#}
<p>To compile:</p>
{#shell_samp#}$ zig build-exe main.c my_zig_helpers.zig {#end_shell_samp#}
{#shell_samp#}$ zig build-exe main.c my_zig_helpers.zig -lc {#end_shell_samp#}
{#header_close#}
{#header_close#}
{#header_open|WebAssembly#}