网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

protobuf 使用教程

时间:2024-10-15 12:11:26

1、编译完成以后, 会有一个.lib 和 一个.exe 文件

protobuf 使用教程

2、我们在这个目录下随便写一个 proto的头文件先

protobuf 使用教程

3、把他保存成 warrially.proto按住shift 点右键空白区域, 在此处打开命令窗口 打开控制台, 进入这个目录输入命令

protobuf 使用教程

4、这个时候目录里面应该生成了warrially.pb.h 和warrially.pb.cc 两个文件

protobuf 使用教程

5、把 两个文件拷贝进去, 并且设置好 include 的目录 和 lib 的目录.

protobuf 使用教程

6、就可以使用 protobuf进行编程了

protobuf 使用教程
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com