woailunhua opened a new issue, #2954:
URL: https://github.com/apache/brpc/issues/2954
/home/brpc-master/src/json2pb/json_to_pb.cpp: In function ‘bool
json2pb::ProtoJsonToProtoMessage(google::protobuf::io::ZeroCopyInputStream*,
google::protobuf::Message*, const ProtoJson2PbOptions&, std::string*)’:
/home/brpc-master/src/json2pb/json_to_pb.cpp:734:51: error: variable
‘google::protobuf::io::CodedInputStream decoder’ has initializer but incomplete
type
734 | google::protobuf::io::CodedInputStream decoder(&input_stream);
| ^
/home/brpc-master/src/json2pb/json_to_pb.cpp: In function ‘bool
json2pb::ProtoJsonToProtoMessage(const string&, google::protobuf::Message*,
const ProtoJson2PbOptions&, std::string*)’:
/home/brpc-master/src/json2pb/json_to_pb.cpp:744:27: error:
‘ArrayInputStream’ is not a member of ‘google::protobuf::io’; did you mean
‘CodedInputStream’?
744 | google::protobuf::io::ArrayInputStream input_stream(json.data(),
json.size());
| ^~~~~~~~~~~~~~~~
| CodedInputStream
/home/brpc-master/src/json2pb/json_to_pb.cpp:745:37: error: ‘input_stream’
was not declared in this scope
745 | return ProtoJsonToProtoMessage(&input_stream, message, options,
error);
| ^~~~~~~~~~~~
[ 53%] Building CXX object
src/CMakeFiles/SOURCES_LIB.dir/json2pb/protobuf_map.cpp.o
make[2]: *** [src/CMakeFiles/SOURCES_LIB.dir/build.make:496:
src/CMakeFiles/SOURCES_LIB.dir/json2pb/json_to_pb.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/brpc-master/src/json2pb/pb_to_json.cpp: In function ‘bool
json2pb::ProtoMessageToProtoJson(const google::protobuf::Message&,
std::string*, const Pb2ProtoJsonOptions&, std::string*)’:
/home/brpc-master/src/json2pb/pb_to_json.cpp:374:27: error:
‘StringOutputStream’ is not a member of ‘google::protobuf::io’; did you mean
‘CodedOutputStream’?
374 | google::protobuf::io::StringOutputStream output_stream(json);
| ^~~~~~~~~~~~~~~~~~
| CodedOutputStream
/home/brpc-master/src/json2pb/pb_to_json.cpp:375:46: error: ‘output_stream’
was not declared in this scope
375 | return ProtoMessageToProtoJson(message, &output_stream, options,
error);
| ^~~~~~~~~~~~~
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]