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\ $FILE
HR_PROTO_EXPORT
是一个宏,Hotot Rod C++ 客户端会在编译 Protobuf 模式时扩展。- 如果您计划使用查询,请将 Protobuf 模式注册到 Data Grid。
其他资源