版本不兼容导致协议缓冲区错误

时间:2018-12-17 03:17:30

标签: c++ protocol-buffers protoc

我正在尝试在ubuntu 18.04上编译并收到以下错误- file.pb.h:17:2: error: #error This file was generated by an older version of protoc which is #error This file was generated by an older version of protoc which is

protoc --version libprotoc 3.6.1

来自google/protobuf/stubs/common.h

#define GOOGLE_PROTOBUF_VERSION 3006001

所以看起来版本匹配。 我确实删除了所有旧版本,以防万一使用以下链接 https://www.howtoinstall.co/en/ubuntu/trusty/protobuf-compiler?action=remove

我在这里想念什么?

0 个答案:

没有答案