jiansongjay opened a new issue #687: GCC 63, PB 3.0.0, gflag 2.2.0编译出错 URL: https://github.com/apache/incubator-brpc/issues/687 如题编译一直出错,附件是make的日志 `/ home//homeapp//appworkspace//workspaceincubator/-incubatorbrpc-/brpcsrc//srcbvar/gflag.cpp:86: undefined reference to `google/:bvar:/SetCommandLineOptiongflag.cpp[:abi86::cxx11 ]undefined( charreference constto* ,` googlechar: :const*)' SetCommandLineOption[abi:cxx11](char const*, char const*)' ../../output/lib/libbrpc.a(json_to_pb.cpp.o): In function `json2pb::convert_enum_type(butil::rapidjson::GenericValue<butil::rapidjson::UTF8<char>, butil::rapidjson::MemoryPoolAllocator<butil::rapidjson::CrtAllocator> > const&, bool, google::protobuf::Message*, google::protobuf::FieldDescriptor const*, google::protobuf::Reflectioncollect2: error: ld returned 1 exit status const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)': /home/app/workspace/incubator-brpc/src/json2pb/json_to_pb.cpp:182: undefined reference to `google::protobuf::EnumDescriptor::FindValueByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' /home/app/workspace/incubator-brpc/src/json2pb/json_to_pb.cpp:182: undefined reference to `google::protobuf::EnumDescriptor::FindValueByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' ../../output/lib/libbrpc.a(json_to_pb.cpp.o): In function `json2pb::JsonMapToProtoMap(butil::rapidjson::GenericValue<butil::rapidjson::UTF8<char>, butil::rapidjson::MemoryPoolAllocator<butil::rapidjson::CrtAllocator> > const&, google::protobuf::FieldDescriptor const*, google::protobuf::Message*, json2pb::Json2PbOptions const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)': /home/app/workspace/incubator-brpc/src/json2pb/json_to_pb.cpp:383: undefined reference to `google::protobuf::Descriptor::FindFieldByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' /home/app/workspace/incubator-brpc/src/json2pb/json_to_pb.cpp:385: undefined reference to `google::protobuf::Descriptor::FindFieldByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' collect2: error: ld returned 1 exit status make[2]: *** [output/bin/parallel_http] Error 1 make[1]: *** [tools/parallel_http/CMakeFiles/parallel_http.dir/all] Error 2 make[2]: *** [output/bin/rpc_replay] Error 1 make[1]: *** [tools/rpc_replay/CMakeFiles/rpc_replay.dir/all] Error 2 make: *** [all] Error 2`
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
