Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what's the suitable version of protoc ? #7

Closed
z-huabao opened this issue Mar 6, 2018 · 3 comments
Closed

what's the suitable version of protoc ? #7

z-huabao opened this issue Mar 6, 2018 · 3 comments

Comments

@z-huabao
Copy link

z-huabao commented Mar 6, 2018

Hello! I get error while make:

make[1]: Entering directory '/home/pi/tengine/serializer'
make[2]: Entering directory '/home/pi/tengine/serializer/onnx'
protoc --cpp_out . onnx.proto
mv onnx.pb.h ../include
In file included from onnx.pb.cc:4:0:
/home/pi/tengine/serializer/include/onnx.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is
  ^~~~~
/home/pi/tengine/serializer/include/onnx.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
 #error incompatible with your Protocol Buffer headers.  Please update
  ^~~~~
/home/pi/tengine/serializer/include/onnx.pb.h:14:2: error: #error your headers.
 #error your headers.

It seen that I using the wrong version of protoc , isn't it ?

@z-huabao
Copy link
Author

z-huabao commented Mar 6, 2018

have deal it !
I use 3.5.1 before, now libprotoc 3.0.0 will be ok!

@cyberfire
Copy link

@zhonghuabao1
You can use "make clean" to clear the generated .pb.h and .pb.cc files.

Thanks,

Haitao

@z-huabao
Copy link
Author

z-huabao commented Mar 9, 2018

@cyberfire “make clean” is not used when I use protoc3.5.1
I had try it !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants