ketor commented on PR #2546:
URL: https://github.com/apache/brpc/pull/2546#issuecomment-2003527639

   请问这个PR使用的protobuf的版本是多少呢?  
   
   用prototbuf 3.22.5版本验证,cmake编译会报错:
   /home/mengsz/git/other/brpc/src/json2pb/json_to_pb.cpp: In function ‘bool 
json2pb::JsonValueToProtoMessage(const butil::rapidjson::Value&, 
google::protobuf::Message*, const Json2PbOptions&, std::string*, bool)’:
   /home/mengsz/git/other/brpc/src/json2pb/json_to_pb.cpp:540:42: error: ‘const 
struct google::protobuf::Descriptor::ExtensionRange’ has no member named 
‘start_number’
     540 |         for (int tag_number = ext_range->start_number(); tag_number 
< ext_range->end_number(); ++tag_number)
   
   
   这个地方是不是代码里判断的值不对啊?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to