protobuf 2.6不再支持文件名通配符

protobuf 2.6之前的版本,同时为多个proto文件生成java或者c++代码时,是支持通配符的,比如

protoc.exe --proto_path=custom_msg --cpp_out=build custom_msg/*.proto

但现在2.6已经不支持这种写法了,要同时指定多个proto文件名,必须追加文件名:

protoc.exe --proto_path=custom_msg --cpp_out=build custom_msg/aaa.proto custom_msg/bbb.proto

猜你喜欢

转载自aigo.iteye.com/blog/2294705