FlatBuffers-使用--grpc时出现错误错误名称空间'grpc :: internal'中没有名为'StreamedUnaryHandler'的模板

如何解决FlatBuffers-使用--grpc时出现错误错误名称空间'grpc :: internal'中没有名为'StreamedUnaryHandler'的模板

我正在使用FlatBuffers,这是我的架构:

namespace Vibranium;

table AccountRole_Packet {
    id:int;
    name:string;
}
table AccountRole_Packet_Response {
    id:int;
    name:string;
}
root_type AccountRole_Packet;

rpc_service AccountRole_Service {
    GetAccountRole(AccountRole_Packet):AccountRole_Packet_Response;
}

我执行以下命令:

flatc --grpc -c ./AccountRole_Packet.fbs

哪个生成这些文件:

AccountRole_Packet.grpc.fb.cc

// Generated by the gRPC C++ plugin.
// If you make any local change,they will be lost.
// source: AccountRole_Packet

#include "AccountRole_Packet_generated.h"
#include "AccountRole_Packet.grpc.fb.h"

#include <grpc++/impl/codegen/async_stream.h>
#include <grpc++/impl/codegen/async_unary_call.h>
#include <grpc++/impl/codegen/channel_interface.h>
#include <grpc++/impl/codegen/client_unary_call.h>
#include <grpc++/impl/codegen/method_handler_impl.h>
#include <grpc++/impl/codegen/rpc_service_method.h>
#include <grpc++/impl/codegen/service_type.h>
#include <grpc++/impl/codegen/sync_stream.h>
namespace Vibranium {

static const char* AccountRole_Service_method_names[] = {
  "/Vibranium.AccountRole_Service/GetAccountRole",};

std::unique_ptr< AccountRole_Service::Stub> AccountRole_Service::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel,const ::grpc::StubOptions& options) {
  std::unique_ptr< AccountRole_Service::Stub> stub(new AccountRole_Service::Stub(channel));
  return stub;
}

AccountRole_Service::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
  : channel_(channel),rpcmethod_GetAccountRole_(AccountRole_Service_method_names[0],::grpc::internal::RpcMethod::NORMAL_RPC,channel)
  {}
  
::grpc::Status AccountRole_Service::Stub::GetAccountRole(::grpc::ClientContext* context,const flatbuffers::grpc::Message<AccountRole_Packet>& request,flatbuffers::grpc::Message<AccountRole_Packet_Response>* response) {
  return ::grpc::internal::BlockingUnaryCall(channel_.get(),rpcmethod_GetAccountRole_,context,request,response);
}

::grpc::ClientAsyncResponseReader< flatbuffers::grpc::Message<AccountRole_Packet_Response>>* AccountRole_Service::Stub::AsyncGetAccountRoleRaw(::grpc::ClientContext* context,::grpc::CompletionQueue* cq) {
  return ::grpc::internal::ClientAsyncResponseReaderFactory< flatbuffers::grpc::Message<AccountRole_Packet_Response>>::Create(channel_.get(),cq,true);
}

::grpc::ClientAsyncResponseReader< flatbuffers::grpc::Message<AccountRole_Packet_Response>>* AccountRole_Service::Stub::PrepareAsyncGetAccountRoleRaw(::grpc::ClientContext* context,false);
}

AccountRole_Service::Service::Service() {
  AddMethod(new ::grpc::internal::RpcServiceMethod(
      AccountRole_Service_method_names[0],new ::grpc::internal::RpcMethodHandler< AccountRole_Service::Service,flatbuffers::grpc::Message<AccountRole_Packet>,flatbuffers::grpc::Message<AccountRole_Packet_Response>>(
          std::mem_fn(&AccountRole_Service::Service::GetAccountRole),this)));
}

AccountRole_Service::Service::~Service() {
}

::grpc::Status AccountRole_Service::Service::GetAccountRole(::grpc::ServerContext* context,const flatbuffers::grpc::Message<AccountRole_Packet>* request,flatbuffers::grpc::Message<AccountRole_Packet_Response>* response) {
  (void) context;
  (void) request;
  (void) response;
  return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED,"");
}


}  // namespace Vibranium

AccountRole_Packet.grpc.fb.h

// Generated by the gRPC C++ plugin.
// If you make any local change,they will be lost.
// source: AccountRole_Packet
#ifndef GRPC_AccountRole_5fPacket__INCLUDED
#define GRPC_AccountRole_5fPacket__INCLUDED

#include "AccountRole_Packet_generated.h"
#include "flatbuffers/grpc.h"

#include <grpc++/impl/codegen/async_stream.h>
#include <grpc++/impl/codegen/async_unary_call.h>
#include <grpc++/impl/codegen/method_handler_impl.h>
#include <grpc++/impl/codegen/proto_utils.h>
#include <grpc++/impl/codegen/rpc_method.h>
#include <grpc++/impl/codegen/service_type.h>
#include <grpc++/impl/codegen/status.h>
#include <grpc++/impl/codegen/stub_options.h>
#include <grpc++/impl/codegen/sync_stream.h>

namespace grpc {
class CompletionQueue;
class Channel;
class ServerCompletionQueue;
class ServerContext;
}  // namespace grpc

namespace Vibranium {

class AccountRole_Service final {
 public:
  static constexpr char const* service_full_name() {
    return "Vibranium.AccountRole_Service";
  }
  class StubInterface {
   public:
    virtual ~StubInterface() {}
    virtual ::grpc::Status GetAccountRole(::grpc::ClientContext* context,flatbuffers::grpc::Message<AccountRole_Packet_Response>* response) = 0;
    std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<AccountRole_Packet_Response>>> AsyncGetAccountRole(::grpc::ClientContext* context,::grpc::CompletionQueue* cq) {
      return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<AccountRole_Packet_Response>>>(AsyncGetAccountRoleRaw(context,cq));
    }
    std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<AccountRole_Packet_Response>>> PrepareAsyncGetAccountRole(::grpc::ClientContext* context,::grpc::CompletionQueue* cq) {
      return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<AccountRole_Packet_Response>>>(PrepareAsyncGetAccountRoleRaw(context,cq));
    }
  private:
    virtual ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<AccountRole_Packet_Response>>* AsyncGetAccountRoleRaw(::grpc::ClientContext* context,::grpc::CompletionQueue* cq) = 0;
    virtual ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<AccountRole_Packet_Response>>* PrepareAsyncGetAccountRoleRaw(::grpc::ClientContext* context,::grpc::CompletionQueue* cq) = 0;
  };
  class Stub final : public StubInterface {
   public:
    Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel);
    ::grpc::Status GetAccountRole(::grpc::ClientContext* context,flatbuffers::grpc::Message<AccountRole_Packet_Response>* response) override;
    std::unique_ptr< ::grpc::ClientAsyncResponseReader< flatbuffers::grpc::Message<AccountRole_Packet_Response>>> AsyncGetAccountRole(::grpc::ClientContext* context,::grpc::CompletionQueue* cq) {
      return std::unique_ptr< ::grpc::ClientAsyncResponseReader< flatbuffers::grpc::Message<AccountRole_Packet_Response>>>(AsyncGetAccountRoleRaw(context,cq));
    }
    std::unique_ptr< ::grpc::ClientAsyncResponseReader< flatbuffers::grpc::Message<AccountRole_Packet_Response>>> PrepareAsyncGetAccountRole(::grpc::ClientContext* context,::grpc::CompletionQueue* cq) {
      return std::unique_ptr< ::grpc::ClientAsyncResponseReader< flatbuffers::grpc::Message<AccountRole_Packet_Response>>>(PrepareAsyncGetAccountRoleRaw(context,cq));
    }

   private:
    std::shared_ptr< ::grpc::ChannelInterface> channel_;
    ::grpc::ClientAsyncResponseReader< flatbuffers::grpc::Message<AccountRole_Packet_Response>>* AsyncGetAccountRoleRaw(::grpc::ClientContext* context,::grpc::CompletionQueue* cq) override;
    ::grpc::ClientAsyncResponseReader< flatbuffers::grpc::Message<AccountRole_Packet_Response>>* PrepareAsyncGetAccountRoleRaw(::grpc::ClientContext* context,::grpc::CompletionQueue* cq) override;
    const ::grpc::internal::RpcMethod rpcmethod_GetAccountRole_;
  };
  static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel,const ::grpc::StubOptions& options = ::grpc::StubOptions());

  class Service : public ::grpc::Service {
   public:
    Service();
    virtual ~Service();
    virtual ::grpc::Status GetAccountRole(::grpc::ServerContext* context,flatbuffers::grpc::Message<AccountRole_Packet_Response>* response);
  };
  template <class BaseClass>
  class WithAsyncMethod_GetAccountRole : public BaseClass {
   private:
    void BaseClassMustBeDerivedFromService(const Service *service) {}
   public:
    WithAsyncMethod_GetAccountRole() {
      ::grpc::Service::MarkMethodAsync(0);
    }
    ~WithAsyncMethod_GetAccountRole() override {
      BaseClassMustBeDerivedFromService(this);
    }
    // disable synchronous version of this method
    ::grpc::Status GetAccountRole(::grpc::ServerContext* context,flatbuffers::grpc::Message<AccountRole_Packet_Response>* response) final override {
      abort();
      return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED,"");
    }
    void RequestGetAccountRole(::grpc::ServerContext* context,flatbuffers::grpc::Message<AccountRole_Packet>* request,::grpc::ServerAsyncResponseWriter< flatbuffers::grpc::Message<AccountRole_Packet_Response>>* response,::grpc::CompletionQueue* new_call_cq,::grpc::ServerCompletionQueue* notification_cq,void *tag) {
      ::grpc::Service::RequestAsyncUnary(0,response,new_call_cq,notification_cq,tag);
    }
  };
  typedef   WithAsyncMethod_GetAccountRole<  Service   >   AsyncService;
  template <class BaseClass>
  class WithGenericMethod_GetAccountRole : public BaseClass {
   private:
    void BaseClassMustBeDerivedFromService(const Service *service) {}
   public:
    WithGenericMethod_GetAccountRole() {
      ::grpc::Service::MarkMethodGeneric(0);
    }
    ~WithGenericMethod_GetAccountRole() override {
      BaseClassMustBeDerivedFromService(this);
    }
    // disable synchronous version of this method
    ::grpc::Status GetAccountRole(::grpc::ServerContext* context,"");
    }
  };
  template <class BaseClass>
  class WithStreamedUnaryMethod_GetAccountRole : public BaseClass {
   private:
    void BaseClassMustBeDerivedFromService(const Service *service) {}
   public:
    WithStreamedUnaryMethod_GetAccountRole() {
      ::grpc::Service::MarkMethodStreamed(0,new ::grpc::internal::StreamedUnaryHandler< flatbuffers::grpc::Message<AccountRole_Packet>,flatbuffers::grpc::Message<AccountRole_Packet_Response>>(std::bind(&WithStreamedUnaryMethod_GetAccountRole<BaseClass>::StreamedGetAccountRole,this,std::placeholders::_1,std::placeholders::_2)));
    }
    ~WithStreamedUnaryMethod_GetAccountRole() override {
      BaseClassMustBeDerivedFromService(this);
    }
    // disable regular version of this method
    ::grpc::Status GetAccountRole(::grpc::ServerContext* context,"");
    }
    // replace default version of method with streamed unary
    virtual ::grpc::Status StreamedGetAccountRole(::grpc::ServerContext* context,::grpc::ServerUnaryStreamer< flatbuffers::grpc::Message<AccountRole_Packet>,flatbuffers::grpc::Message<AccountRole_Packet_Response>>* server_unary_streamer) = 0;
  };
  typedef   WithStreamedUnaryMethod_GetAccountRole<  Service   >   StreamedUnaryService;
  typedef   Service   SplitStreamedService;
  typedef   WithStreamedUnaryMethod_GetAccountRole<  Service   >   StreamedService;
};

}  // namespace Vibranium


#endif  // GRPC_AccountRole_5fPacket__INCLUDED

AccountRole_Packet_generated.h

// automatically generated by the FlatBuffers compiler,do not modify


#ifndef FLATBUFFERS_GENERATED_ACCOUNTROLEPACKET_VIBRANIUM_H_
#define FLATBUFFERS_GENERATED_ACCOUNTROLEPACKET_VIBRANIUM_H_

#include "flatbuffers/flatbuffers.h"

namespace Vibranium {

struct AccountRole_Packet;
struct AccountRole_PacketBuilder;

struct AccountRole_Packet_Response;
struct AccountRole_Packet_ResponseBuilder;

struct AccountRole_Packet FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
  typedef AccountRole_PacketBuilder Builder;
  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
    VT_ID = 4,VT_NAME = 6
  };
  int32_t id() const {
    return GetField<int32_t>(VT_ID,0);
  }
  const flatbuffers::String *name() const {
    return GetPointer<const flatbuffers::String *>(VT_NAME);
  }
  bool Verify(flatbuffers::Verifier &verifier) const {
    return VerifyTableStart(verifier) &&
           VerifyField<int32_t>(verifier,VT_ID) &&
           VerifyOffset(verifier,VT_NAME) &&
           verifier.VerifyString(name()) &&
           verifier.EndTable();
  }
};

struct AccountRole_PacketBuilder {
  typedef AccountRole_Packet Table;
  flatbuffers::FlatBufferBuilder &fbb_;
  flatbuffers::uoffset_t start_;
  void add_id(int32_t id) {
    fbb_.AddElement<int32_t>(AccountRole_Packet::VT_ID,id,0);
  }
  void add_name(flatbuffers::Offset<flatbuffers::String> name) {
    fbb_.AddOffset(AccountRole_Packet::VT_NAME,name);
  }
  explicit AccountRole_PacketBuilder(flatbuffers::FlatBufferBuilder &_fbb)
        : fbb_(_fbb) {
    start_ = fbb_.StartTable();
  }
  flatbuffers::Offset<AccountRole_Packet> Finish() {
    const auto end = fbb_.EndTable(start_);
    auto o = flatbuffers::Offset<AccountRole_Packet>(end);
    return o;
  }
};

inline flatbuffers::Offset<AccountRole_Packet> CreateAccountRole_Packet(
    flatbuffers::FlatBufferBuilder &_fbb,int32_t id = 0,flatbuffers::Offset<flatbuffers::String> name = 0) {
  AccountRole_PacketBuilder builder_(_fbb);
  builder_.add_name(name);
  builder_.add_id(id);
  return builder_.Finish();
}

inline flatbuffers::Offset<AccountRole_Packet> CreateAccountRole_PacketDirect(
    flatbuffers::FlatBufferBuilder &_fbb,const char *name = nullptr) {
  auto name__ = name ? _fbb.CreateString(name) : 0;
  return Vibranium::CreateAccountRole_Packet(
      _fbb,name__);
}

struct AccountRole_Packet_Response FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
  typedef AccountRole_Packet_ResponseBuilder Builder;
  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
    VT_ID = 4,VT_NAME) &&
           verifier.VerifyString(name()) &&
           verifier.EndTable();
  }
};

struct AccountRole_Packet_ResponseBuilder {
  typedef AccountRole_Packet_Response Table;
  flatbuffers::FlatBufferBuilder &fbb_;
  flatbuffers::uoffset_t start_;
  void add_id(int32_t id) {
    fbb_.AddElement<int32_t>(AccountRole_Packet_Response::VT_ID,0);
  }
  void add_name(flatbuffers::Offset<flatbuffers::String> name) {
    fbb_.AddOffset(AccountRole_Packet_Response::VT_NAME,name);
  }
  explicit AccountRole_Packet_ResponseBuilder(flatbuffers::FlatBufferBuilder &_fbb)
        : fbb_(_fbb) {
    start_ = fbb_.StartTable();
  }
  flatbuffers::Offset<AccountRole_Packet_Response> Finish() {
    const auto end = fbb_.EndTable(start_);
    auto o = flatbuffers::Offset<AccountRole_Packet_Response>(end);
    return o;
  }
};

inline flatbuffers::Offset<AccountRole_Packet_Response> CreateAccountRole_Packet_Response(
    flatbuffers::FlatBufferBuilder &_fbb,flatbuffers::Offset<flatbuffers::String> name = 0) {
  AccountRole_Packet_ResponseBuilder builder_(_fbb);
  builder_.add_name(name);
  builder_.add_id(id);
  return builder_.Finish();
}

inline flatbuffers::Offset<AccountRole_Packet_Response> CreateAccountRole_Packet_ResponseDirect(
    flatbuffers::FlatBufferBuilder &_fbb,const char *name = nullptr) {
  auto name__ = name ? _fbb.CreateString(name) : 0;
  return Vibranium::CreateAccountRole_Packet_Response(
      _fbb,name__);
}

inline const Vibranium::AccountRole_Packet *GetAccountRole_Packet(const void *buf) {
  return flatbuffers::GetRoot<Vibranium::AccountRole_Packet>(buf);
}

inline const Vibranium::AccountRole_Packet *GetSizePrefixedAccountRole_Packet(const void *buf) {
  return flatbuffers::GetSizePrefixedRoot<Vibranium::AccountRole_Packet>(buf);
}

inline bool VerifyAccountRole_PacketBuffer(
    flatbuffers::Verifier &verifier) {
  return verifier.VerifyBuffer<Vibranium::AccountRole_Packet>(nullptr);
}

inline bool VerifySizePrefixedAccountRole_PacketBuffer(
    flatbuffers::Verifier &verifier) {
  return verifier.VerifySizePrefixedBuffer<Vibranium::AccountRole_Packet>(nullptr);
}

inline void FinishAccountRole_PacketBuffer(
    flatbuffers::FlatBufferBuilder &fbb,flatbuffers::Offset<Vibranium::AccountRole_Packet> root) {
  fbb.Finish(root);
}

inline void FinishSizePrefixedAccountRole_PacketBuffer(
    flatbuffers::FlatBufferBuilder &fbb,flatbuffers::Offset<Vibranium::AccountRole_Packet> root) {
  fbb.FinishSizePrefixed(root);
}

}  // namespace Vibranium

#endif  // FLATBUFFERS_GENERATED_ACCOUNTROLEPACKET_VIBRANIUM_H_

到目前为止一切顺利。但是,当我尝试构建时,出现以下错误:

[ 10%] Building CXX object Source/Common/CMakeFiles/Common.dir/Server/Packets/AccountRole_Packet.grpc.fb.cc.o
In file included from /home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.cc:6:
/home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.h: In member function ‘void Vibranium::AccountRole_Service::WithAsyncMethod_GetAccountRole<BaseClass>::RequestGetAccountRole(grpc::ServerContext*,flatbuffers::grpc::Message<Vibranium::AccountRole_Packet>*,grpc::ServerAsyncResponseWriter<flatbuffers::grpc::Message<Vibranium::AccountRole_Packet_Response> >*,grpc::CompletionQueue*,grpc::ServerCompletionQueue*,void*)’:
/home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.h:90:106: error: no matching function for call to ‘grpc::Service::RequestAsyncUnary(int,grpc::ServerContext*&,flatbuffers::grpc::Message<Vibranium::AccountRole_Packet>*&,grpc::ServerAsyncResponseWriter<flatbuffers::grpc::Message<Vibranium::AccountRole_Packet_Response> >*&,grpc::CompletionQueue*&,grpc::ServerCompletionQueue*&,void*&)’
   90 |       ::grpc::Service::RequestAsyncUnary(0,tag);
      |                                                                                                          ^
In file included from /usr/local/include/grpcpp/impl/codegen/async_stream_impl.h:25,from /usr/local/include/grpcpp/impl/codegen/async_stream.h:22,from /usr/local/include/grpc++/impl/codegen/async_stream.h:26,from /home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.h:10,from /home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.cc:6:
/usr/local/include/grpcpp/impl/codegen/service_type.h:130:8: note: candidate: ‘template<class Message> void grpc::Service::RequestAsyncUnary(int,grpc_impl::ServerContext*,Message*,grpc::internal::ServerAsyncStreamingInterface*,void*)’
  130 |   void RequestAsyncUnary(int index,::grpc_impl::ServerContext* context,|        ^~~~~~~~~~~~~~~~~
/usr/local/include/grpcpp/impl/codegen/service_type.h:130:8: note:   template argument deduction/substitution failed:
In file included from /home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.cc:6:
/home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.h:90:45: note:   cannot convert ‘context’ (type ‘grpc::ServerContext*’) to type ‘grpc_impl::ServerContext*’
   90 |       ::grpc::Service::RequestAsyncUnary(0,tag);
      |                                             ^~~~~~~
/home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.h: In constructor ‘Vibranium::AccountRole_Service::WithStreamedUnaryMethod_GetAccountRole<BaseClass>::WithStreamedUnaryMethod_GetAccountRole()’:
/home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.h:118:31: error: ‘StreamedUnaryHandler’ in namespace ‘grpc::internal’ does not name a template type
  118 |         new ::grpc::internal::StreamedUnaryHandler< flatbuffers::grpc::Message<AccountRole_Packet>,std::placeholders::_2)));
      |                               ^~~~~~~~~~~~~~~~~~~~
/home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.h:118:99: error: expected primary-expression before ‘,’ token
  118 |         new ::grpc::internal::StreamedUnaryHandler< flatbuffers::grpc::Message<AccountRole_Packet>,std::placeholders::_2)));
      |                                                                                                   ^
/home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.h:118:155: error: expected primary-expression before ‘>’ token
  118 |         new ::grpc::internal::StreamedUnaryHandler< flatbuffers::grpc::Message<AccountRole_Packet>,std::placeholders::_2)));
      |                                                                                                                                                           ^~
/home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.cc: In constructor ‘Vibranium::AccountRole_Service::Service::Service()’:
/home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.cc:47:29: error: ‘RpcMethodHandler’ in namespace ‘grpc::internal’ does not name a template type; did you mean ‘MethodHandler’?
   47 |       new ::grpc::internal::RpcMethodHandler< AccountRole_Service::Service,flatbuffers::grpc::Message<AccountRole_Packet_Response>>(
      |                             ^~~~~~~~~~~~~~~~
      |                             MethodHandler
/home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.cc:47:75: error: expected primary-expression before ‘,’ token
   47 |       new ::grpc::internal::RpcMethodHandler< AccountRole_Service::Service,flatbuffers::grpc::Message<AccountRole_Packet_Response>>(
      |                                                                           ^
/home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.cc:47:123: error: expected primary-expression before ‘,flatbuffers::grpc::Message<AccountRole_Packet_Response>>(
      |                                                                                                                           ^
/home/armegon/Vibranium-Core/Source/Common/Server/Packets/AccountRole_Packet.grpc.fb.cc:47:179: error: expected primary-expression before ‘>’ token
   47 |       new ::grpc::internal::RpcMethodHandler< AccountRole_Service::Service,flatbuffers::grpc::Message<AccountRole_Packet_Response>>(
      |                                                                                                                                                                                   ^~
make[3]: *** [Source/Common/CMakeFiles/Common.dir/build.make:226: Source/Common/CMakeFiles/Common.dir/Server/Packets/AccountRole_Packet.grpc.fb.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/Makefile2:256: Source/Common/CMakeFiles/Common.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:317: Source/Core/AuthServer/CMakeFiles/AuthServer.dir/rule] Error 2
make: *** [Makefile:210: AuthServer] Error 2

这是我的主要CMakeLists.txt文件:Link Here

这是CMakeLists.txt库的Common,我在其中使用FlatBuffers:Link Here

AccountRole_Packet.grpc.fb.h:118上,当我将鼠标悬停在new ::grpc::internal::StreamedUnaryHandler上时,我看到了这个new ::grpc::internal::,我看到IDE给我以下错误:

No template named 'StreamedUnaryHandler' in namespace 'grpc::internal'; did you mean 'grpc_impl::internal::StreamedUnaryHandler'?

为什么我会收到此错误?我该如何解决?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-
参考1 参考2 解决方案 # 点击安装源 协议选择 http:// 路径填写 mirrors.aliyun.com/centos/8.3.2011/BaseOS/x86_64/os URL类型 软件库URL 其他路径 # 版本 7 mirrors.aliyun.com/centos/7/os/x86
报错1 [root@slave1 data_mocker]# kafka-console-consumer.sh --bootstrap-server slave1:9092 --topic topic_db [2023-12-19 18:31:12,770] WARN [Consumer clie
错误1 # 重写数据 hive (edu)&gt; insert overwrite table dwd_trade_cart_add_inc &gt; select data.id, &gt; data.user_id, &gt; data.course_id, &gt; date_format(
错误1 hive (edu)&gt; insert into huanhuan values(1,&#39;haoge&#39;); Query ID = root_20240110071417_fe1517ad-3607-41f4-bdcf-d00b98ac443e Total jobs = 1
报错1:执行到如下就不执行了,没有显示Successfully registered new MBean. [root@slave1 bin]# /usr/local/software/flume-1.9.0/bin/flume-ng agent -n a1 -c /usr/local/softwa
虚拟及没有启动任何服务器查看jps会显示jps,如果没有显示任何东西 [root@slave2 ~]# jps 9647 Jps 解决方案 # 进入/tmp查看 [root@slave1 dfs]# cd /tmp [root@slave1 tmp]# ll 总用量 48 drwxr-xr-x. 2
报错1 hive&gt; show databases; OK Failed with exception java.io.IOException:java.lang.RuntimeException: Error in configuring object Time taken: 0.474 se
报错1 [root@localhost ~]# vim -bash: vim: 未找到命令 安装vim yum -y install vim* # 查看是否安装成功 [root@hadoop01 hadoop]# rpm -qa |grep vim vim-X11-7.4.629-8.el7_9.x
修改hadoop配置 vi /usr/local/software/hadoop-2.9.2/etc/hadoop/yarn-site.xml # 添加如下 &lt;configuration&gt; &lt;property&gt; &lt;name&gt;yarn.nodemanager.res