sangli00 commented on issue #1732:
URL: 
https://github.com/apache/incubator-brpc/issues/1732#issuecomment-1087064418

   > Linking protoc-gen-mcpack
   g++ -o protoc-gen-mcpack -I./src -I/usr/include/ -I/usr/local/include/ 
-L/usr/local/lib -L/usr/local/lib64 -std=c++0x -Xlinker "-(" 
src/idl_options.pb.cc src/mcpack2pb/generator.o libbrpc.a -Wl,-Bstatic -lgflags 
-lprotobuf -lprotoc -Wl,-Bdynamic -Xlinker "-)" -lpthread -lssl -lcrypto -ldl 
-lz -lrt -lleveldb -D_GLIBCXX_USE_CXX11_ABI=0
   
src/mcpack2pb/generator.o:在函数‘google::protobuf::internal::StringTypeTraits::Get(int,
 google::protobuf::internal::ExtensionSet const&, std::string const&)’中:
   
/usr/local/include/google/protobuf/extension_set.h:1077:对‘google::protobuf::internal::ExtensionSet::GetString(int,
 std::string const&) const’未定义的引用
   
src/mcpack2pb/generator.o:在函数‘google::protobuf::io::Printer::PrintInternal(std::map<std::string,
 std::string, std::less<std::string>, std::allocator<std::pair<std::string 
const, std::string> > >*, char const*)’中:
   
/usr/local/include/google/protobuf/io/printer.h:304:对‘google::protobuf::io::Printer::Print(std::map<std::string,
 std::string, std::less<std::string>, std::allocator<std::pair<std::string 
const, std::string> > > const&, char const*)’未定义的引用
   
/usr/local/include/google/protobuf/io/printer.h:304:对‘google::protobuf::io::Printer::Print(std::map<std::string,
 std::string, std::less<std::string>, std::allocator<std::pair<std::string 
const, std::string> > > const&, char const*)’未定义的引用
   
/usr/local/include/google/protobuf/io/printer.h:304:对‘google::protobuf::io::Printer::Print(std::map<std::string,
 std::string, std::less<std::string>, std::allocator<std::pair<std::string 
const, std::string> > > const&, char const*)’未定义的引用
   
/usr/local/include/google/protobuf/io/printer.h:304:对‘google::protobuf::io::Printer::Print(std::map<std::string,
 std::string, std::less<std::string>, std::allocator<std::pair<std::string 
const, std::string> > > const&, char const*)’未定义的引用
   
/usr/local/include/google/protobuf/io/printer.h:304:对‘google::protobuf::io::Printer::Print(std::map<std::string,
 std::string, std::less<std::string>, std::allocator<std::pair<std::string 
const, std::string> > > const&, char const*)’未定义的引用
   
src/mcpack2pb/generator.o:/usr/local/include/google/protobuf/io/printer.h:304: 
跟着更多未定义的参考到 google::protobuf::io::Printer::Print(std::map<std::string, 
std::string, std::less<std::string>, std::allocator<std::pair<std::string 
const, std::string> > > const&, char const*)
   
src/mcpack2pb/generator.o:(.data.rel.ro._ZTVN9mcpack2pb16McpackToProtobufE[_ZTVN9mcpack2pb16McpackToProtobufE]+0x28):对‘google::protobuf::compiler::CodeGenerator::GenerateAll(std::vector<google::protobuf::FileDescriptor
 const*, std::allocator<google::protobuf::FileDescriptor const*> > const&, 
std::string const&, google::protobuf::compiler::GeneratorContext*, 
std::string*) const’未定义的引用
   collect2: 错误:ld 返回 1
   make: *** [protoc-gen-mcpack] 错误 1
   [root@vm10-0-0-152 incubator-brpc-1.0.0]#
   
   gflags改成静态库protobuf这块就过不去了


-- 
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]

Reply via email to