Closed frankwang98 closed 1 year ago
请问后面会支持protobuf 3.x版本吗?
当前源码编译的protobuf3.19,编译报错部分:
Scanning dependencies of target protobuf_rpc_wire_test [ 40%] Building CXX object muduo/net/protorpc/CMakeFiles/protobuf_rpc_wire_test.dir/RpcCodec_test.cc.o [ 40%] Linking CXX executable ../../../bin/protobuf_rpc_wire_test /usr/bin/ld: ../../../lib/libmuduo_protorpc_wire.a(rpc.pb.cc.o): in function
google::protobuf::Arena::~Arena()': /usr/local/include/google/protobuf/arena.h:272: undefined reference togoogle::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'
现在要暂时解决问题的话建议把CMakeList.txt中的find_package(protobuf)给注释了,现在protobuf不支持cxx14以下的版本,就算添加了14的编译也是一堆的protorpc报错,不如直接规避问题。
请问后面会支持protobuf 3.x版本吗?
当前源码编译的protobuf3.19,编译报错部分:
Scanning dependencies of target protobuf_rpc_wire_test [ 40%] Building CXX object muduo/net/protorpc/CMakeFiles/protobuf_rpc_wire_test.dir/RpcCodec_test.cc.o [ 40%] Linking CXX executable ../../../bin/protobuf_rpc_wire_test /usr/bin/ld: ../../../lib/libmuduo_protorpc_wire.a(rpc.pb.cc.o): in function
google::protobuf::Arena::~Arena()': /usr/local/include/google/protobuf/arena.h:272: undefined reference togoogle::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'