top | item 40612219

(no title)

sekao | 1 year ago

The ability to export a zig project to a single C header file would be really nice. Is that still a planned feature?

discuss

order

frankjr|1 year ago

Compiling to a single C file such that you can then compile the result via say clang is already supported (-ofmt=c). Automatic generation of C header files from your Zig library is WIP. The current recommend approach is to just write the C corresponding header files yourself, the issue mentions a couple of examples.

https://github.com/ziglang/zig/issues/9698#issuecomment-9747...