3 ms·
https://ziglang.org/download/0.8.0/release-notes.html#zig-c https://ziglang.org/download/0.8.0/release-notes.html#zig-c > zig c++ is equivalent to zig cc with
by AndyKelley 5y ago
https://ziglang.org/download/0.8.0/release-notes.html#zig-c https://ziglang.org/download/0.8.0/release-notes.html#zig-c
> zig c++ is equivalent to zig cc with an added -lc++ parameter, but I made a separate heading here because I realized that some people are not aware that Zig supports compiling C++ code and providing libc++ too!
You can also mix Zig code and C++ like this:
zig build-exe foo.zig bar.cpp -lc++ -lc