Zig in C++ Projects: `@cImport`, `extern struct`, Linker Settings, and ABI-Compatible Facades
A practical two-hour session on Zig in C++ Projects, focused on @cImport, extern struct, Linker Settings, and ABI-Compatible Facades. The session treats Zig as a native component exposed through C-compatible boundaries, with attention to exported symbols, allocators, packaging, host-runtime tests, and failure handling.
Description
section.descriptionA practical two-hour session on Zig in C++ Projects, focused on @cImport, extern struct, Linker Settings, and ABI-Compatible Facades. The session treats Zig as a native component exposed through C-compatible boundaries, with attention to exported symbols, allocators, packaging, host-runtime tests, and failure handling.
Audience: entry-level and intermediate developers who want a practical engineering session, not a language tour.
Outcomes:
- Explain the practical boundaries of Zig in C++ Projects
- Apply @cImport in a small working example
- Apply extern struct in a small working example
- Apply Linker Settings in a small working example
Format: two hours with a short framing walkthrough, a concrete example, discussion of tradeoffs, and a closing checklist for practice.