Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
forrestthewoods
11mo ago
0 comments
Save
Share
Wait what. Shouldn’t zig crosscompile C++ just fine?
0 comments
2 comments · 1 top-level
top
newest
oldest
flohofwoe
11mo ago
· 1 in thread
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.
forrestthewoods
OP
11mo ago
Oooh yeah that makes sense.
j
/
k
navigate · click thread line to collapse