C++ Setup
Fory C++ is consumed from the Apache Fory source tree. It requires a C++17 compiler and supports CMake 3.16 or later and Bazel 8 or later. Pin one Fory release or commit across every peer in an application.
Verify the Toolchain
c++ --version
cmake --version
# or: bazel --version
Choose a Capability
| Capability | Build target | Continue with |
|---|---|---|
| Object Serialization | fory::serialization or //cpp/fory/serialization | C++ object serialization, then choose xlang or native |
| Row Format | C++ Row and encoder targets | C++ Row Format |
| Schema and generated models | fory-compiler | Fory IDL and Compiler |
| Fory gRPC | generated companions plus gRPC C++ | C++ gRPC |
The selected capability guide owns its exact CMake or Bazel setup and first runnable example.