今天准备用Protobuf做一些序列化,在这个过程中发现了一些问题
下载的版本是 3.2.0 https://github.com/google/protobuf/releases/download/v3.2.0/protobuf-cpp-3.2.0.tar.gz
编译错误
下载之后按照说明开始按照,在编译的时候发现编译不过,环境是centos 6.5,错误如下
In file included from ./google/protobuf/any.pb.h:25,
from google/protobuf/any.pb.cc:5:
./google/protobuf/metadata.h: In constructor ‘google::protobuf::internal::InternalMetadataWithArena::InternalMetadataWithArena(google::protobuf::Arena*)’: