Skip to content

The generated code has an issue with the first method in the service definition. (vcpkg +msvc) #42085

@cchwasd

Description

@cchwasd

Problem Description

The generated code has an issue with the first method in the service definition.
Compilation errors occur when building the gRPC project with Visual Studio 17 2022 (MSVC), while compilation succeeds with MinGW Makefiles.

Error Messages

error C3668: "hub::HubService::Stub::async::RegisterClient": method with override specifier 'override' does not override any base class method  
error C3668: "hub::HubService::Stub::RegisterClient": method with override specifier 'override' does not override any base class method  
error C2039: "RegisterClient": is not a member of "hub::HubService::Service"  
error C2665: "grpc::internal::RpcMethodHandler<...>::RpcMethodHandler": no overloaded function can convert all argument types  

Environment

  • gRPC: 1.76.0
  • Protobuf: 6.33.4
  • MSVC: Visual Studio 17 2022
  • vcpkg triplet: x64-windows
  • gRPC: 1.71.0
  • Protobuf: 5.29.3
  • MSVC: Visual Studio 17 2022
  • vcpkg triplet: x64-windows

The issue persists across both versions.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions