apache / brpc

brpc is an Industrial-grade RPC framework using C++ Language, which is often used in high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc. "brpc" means "better RPC".

Home Page:https://brpc.apache.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Complie errror

ZhangChaoming opened this issue · comments

// cluster_service.h
class ClusterServiceImpl : public ClusterService {
public:
    void DescCluster(google::protobuf::RpcController* controller, const ::DescClusterRequest* request,
                     ::DescClusterResponse* response, ::google::protobuf::Closure* done) override;
};
  • libprotoc 3.21.12

I use git submodule + cmake to build my project , but i met this:

service.pb.h:1546:16: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::Set(int, google::protobuf::Arena*)’
1546 | impl.ip_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());