1、问题说明
项目中多个应用有跨语言跨平台的信息交互需求,因此选择了protobuf做协议编解码。在github上下载了2.7.0版本,根据安装说明编译后,编译失败,报如下错误:
./google/protobuf/metadata.h: In constructor ‘google::protobuf::internal::InternalMetadataWithArena::InternalMetadataWithArena(google::protobuf::Arena*)’:
./google/protobuf/metadata.h:174: 错误:类‘google::protobuf::internal::InternalMetadataWithArena’没有名为‘InternalMetadataWithArenaBase’的字段
./google/protobuf/metadata.h: In constructor ‘google::protobuf::internal::InternalMetadataWithArenaLite::InternalMetadataWithArenaLite(google::protobuf::Arena*)’:
./google/protobuf/metadata.h:203: 错误:类‘google::protobuf::internal::InternalMetadataWithArenaLite’没有名为‘InternalMetadataWith