2.2. 在 Microsoft Windows 上编译 Protobuf 模式
将 Protobuf 模式 .proto 文件编译到 C++ 标头和源文件,以描述您的数据到 Data Grid。
流程
- 打开到 Hot Rod C++ 客户端的安装目录的命令提示符。
根据需要为 Hot Rod C++ 客户端编译 Protobuf 模式。
bin\protoc --cpp_out dllexport_decl=HR_PROTO_EXPORT:path\to\output\ $FILEHR_PROTO_EXPORT是一个宏,在编译 Protobuf 模式时,Hot Rod C++ 客户端会展开。- 如果您计划使用查询,请将您的 Protobuf 模式注册到 Data Grid。