跳到主要内容
版本:dev

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

CapabilityBuild targetContinue with
Object Serializationfory::serialization or //cpp/fory/serializationC++ object serialization, then choose xlang or native
Row FormatC++ Row and encoder targetsC++ Row Format
Schema and generated modelsfory-compilerFory IDL and Compiler
Fory gRPCgenerated companions plus gRPC C++C++ gRPC

The selected capability guide owns its exact CMake or Bazel setup and first runnable example.