Y
Hacker News
new
|
ask
|
show
|
jobs
by
forrestthewoods
347 days ago
Wait what. Shouldn’t zig crosscompile C++ just fine?
1 comments
flohofwoe
347 days ago
Yes, the C++ code compiles just fine, but to call into C++ APIs from Zig you'll need a C API wrapper (and the same is true for ObjC APIs). Not an issue of course for pure C++ projects when the Zig toolchain is just used for cross-compiling.
link
forrestthewoods
347 days ago
Oooh yeah that makes sense.
link