编译protobuf文件
来源:互联网 发布:河北移动网络助手 编辑:程序博客网 时间:2024/05/18 03:45
写好proto文件,如:
package tutorial;message Person { required string name = 1; required int32 id = 2; optional string email = 3; enum PhoneType { MOBILE = 0; HOME = 1; WORK = 2; } message PhoneNumber { required string number = 1; optional PhoneType type = 2 [default = HOME]; } repeated PhoneNumber phone = 4;}message AddressBook { repeated Person person = 1;}
运行cmd,进入.proto文件所在目录,执行:
protoc --proto_path=. --cpp_out=. *.proto
将会在当前目录下生成.cc和.h文件。
0 0
- 编译protobuf文件
- 在lua环境中使用protobuf ,编译protobuf文件
- [ProtoBuf]protobuf编译命令
- 编译 protobuf
- protobuf编译
- protoBuf编译
- Mac:protobuf proto文件编译为Java文件
- 对protobuf进行ndk编译 config.h文件修改部分
- vs2013编译google protobuf生成的消息文件错误。
- 在VS2012中 集成protobuf 文件时, 编译出现问题
- Mac 环境下编译Protobuf 生成多种语言文件
- 交叉编译 google protobuf
- mingw下编译protobuf
- protobuf-wireshark编译小结
- 交叉编译 google protobuf
- ubuntu下编译protobuf
- Protobuf编译原理
- 交叉编译protobuf
- 关于Div的宽度与高度的100%设定
- Linux/UNIX下 ssh-keygen 设置SSH无密码登录
- A017 物料价格
- 使用GSON解析json
- Ubuntu新增用户
- 编译protobuf文件
- mysql中表名为关键字的处理方法
- 配置IISExpress允许外部访问
- 键盘
- CenOS安装Oracle 11g
- C#拒绝添加重复信息与关闭提示
- 【玩转cocos2d-x之二十六】数据结构CCDictionary
- 【CODEFORCES】 B. Worms
- Eclipse调试Bug的七种常用技巧