我目前收到一个错误,指出我在protoc生成的头文件中的这些行:
#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
Run Code Online (Sandbox Code Playgroud)
但我的protoc版本与上面的版本匹配:
protoc --version
libprotoc 2.6.1
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?
最初我的protoc版本是3.0.0然后通过同步回到2.6.1并执行步骤重新安装它; make distclean,./ configure,make,make install来安装所需的2.6.1版本.我需要旧版本,因为那是我们服务器中安装的版本.