我目前得到指向我在由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
但我protoc版本匹配上面的一个:
protoc --version
libprotoc 2.6.1
我在做什么错?
最初我的protoc版本是3.0.0,然后通过同步回到2.6.1并执行步骤重新安装它; make distclean,./configure,make,make install来安装所需的2.6.1版本。我需要较旧的版本,因为那是安装在我们的服务器上的版本。
您确定您之前(含3.0.0版本)生成的protobuf标头已被移除/更新吗? –
是的,我明确删除了这些3.0.0头。我也检查过该文件,并且该版本的检查验证与上面编写的2006001版本比较 –