1 下载 https://github.com/protocolbuffers/protobuf/releases/tag/v2.5.0 2 执行脚本 3 vs2017 打开工程 4 出现如下 解决如下: 5 出现如下问题 (1)在如下文件 添加头文件: (2)在如下文件 添加宏定义