sangli00 commented on issue #1732: URL: https://github.com/apache/incubator-brpc/issues/1732#issuecomment-1087770732
**gflags** [root@vm10-0-0-152 build]# nm -CA lib/libgflags.a |grep "RegisterFlagValidator" lib/libgflags.a:gflags.cc.o:0000000000004930 T google::RegisterFlagValidator(bool const*, bool (*)(char const*, bool)) lib/libgflags.a:gflags.cc.o:0000000000004980 T google::RegisterFlagValidator(double const*, bool (*)(char const*, double)) lib/libgflags.a:gflags.cc.o:0000000000004940 T google::RegisterFlagValidator(int const*, bool (*)(char const*, int)) lib/libgflags.a:gflags.cc.o:0000000000004950 T google::RegisterFlagValidator(unsigned int const*, bool (*)(char const*, unsigned int)) lib/libgflags.a:gflags.cc.o:0000000000004960 T google::RegisterFlagValidator(long const*, bool (*)(char const*, long)) lib/libgflags.a:gflags.cc.o:0000000000004970 T google::RegisterFlagValidator(unsigned long const*, bool (*)(char const*, unsigned long)) lib/libgflags.a:gflags.cc.o:0000000000004990 T google::RegisterFlagValidator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const*, bool (*)(char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)) 静态库中,也有cxx11的函数 **protobuf** [root@vm10-0-0-152 protobuf-3.13.0]# nm -AC ./src/.libs/libprotobuf.a |grep "GetString" ./src/.libs/libprotobuf.a:extension_set.o:00000000000085d4 T google::protobuf::internal::ExtensionSet::GetString(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const 静态库中也有GetString函数的定义啊 **Makefile** CPPFLAGS+=-DBTHREAD_USE_FAST_PTHREAD_MUTEX -D_GLIBCXX_USE_CXX11_ABI=0 -D__const__= -D_GNU_SOURCE -DUSE_SYMBOLIZE -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -DBRPC_REVISION=\"$(shell ./tools/get_brpc_revision.sh .)\" 还是编译不过去。。 -- 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]
