Calling a C++ Function from Carbon and Exposing Carbon Types to C++
Guide to calling a C++ function from Carbon and exposing Carbon types to C++ using the Carbon toolchain and Bazel.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Guide to calling a C++ function from Carbon and exposing Carbon types to C++ using the Carbon toolchain and Bazel.
Learn how to call C++ functions from Carbon and vice‑versa using the language’s bidirectional interoperability, with compile, link, and verification steps.
Learn how to call a C++ function from Carbon by creating an extern "C" wrapper, compiling it to an object file, and linking with carbonc --link-with.