Can you build the examples that come with gRPC? Your error looks like you
might not have protobuf installed.
On Thursday, May 30, 2019 at 8:53:40 AM UTC-7, 윤석영 wrote:
>
> Can I get example codes for c++ empty reponse in async mode
>
> My current code occurs compile error.
>
>
> struct AsyncClientCall {
> google.protobuf.Empty reply;
> ClientContext context;
> Status status;
> std::unique_ptr<ClientAsyncResponseReader<google.protobuf.Empty>>
> response_reader;
> };
>
>
>
> In file included from ./src/CommGrpcService.cpp:1:0:
> ./hdr/CommGrpcService.h:28:9: error: 'google' does not name a type
> google.protobuf.Empty reply;
> ^
> ./hdr/CommGrpcService.h:31:67: error: template argument 1 is invalid
> std::unique_ptr<ClientAsyncResponseReader<google.protobuf.Empty>>
> response_reader;
> ^
> ./hdr/CommGrpcService.h:31:72: error: template argument 1 is invalid
> std::unique_ptr<ClientAsyncResponseReader<google.protobuf.Empty>>
> response_reader;
> ^
> ./hdr/CommGrpcService.h:31:72: error: template argument 2 is invalid
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/5929f668-98ca-4bac-9d10-467cb8faf520%40googlegroups.com.