Tradias/asio-grpc

an upgrade from 2.5.1 to 2.9.1 leads to build errors

Closed this issue · 6 comments

I just replaced 2.5.1 with 2.9.1 and issued a compile , i started seeing this error , is there any thing else we need to do like adding any pre-processor flags .
please advise.

In file included from gsvr.cpp:28:
In file included from /work/opensource//base/asio-grpc-2.9.1/src/agrpc/asio_grpc.hpp:36:
In file included from /work/opensource//base/asio-grpc-2.9.1/src/agrpc/client_rpc.hpp:20:
In file included from /work/opensource//base/asio-grpc-2.9.1/src/agrpc/detail/client_rpc_base.hpp:19:
In file included from /work/opensource//base/asio-grpc-2.9.1/src/agrpc/detail/client_rpc_sender.hpp:22:
/work/opensource//base/asio-grpc-2.9.1/src/agrpc/detail/rpc_type.hpp:57:78: error: no template named 'ServerAsyncResponseWriter' in namespace 'grpc'; did you mean 'grpc_impl::ServerAsyncResponseWriter'?
using ServerUnaryRequest = void (Service::)(grpc::ServerContext, Request*, grpc::ServerAsyncResponseWriter*,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
grpc_impl::ServerAsyncResponseWriter
/usr/include/grpcpp/impl/codegen/server_context_impl.h:60:7: note: 'grpc_impl::ServerAsyncResponseWriter' declared here
class ServerAsyncResponseWriter;

i am using library as header only+

This is caused by missing gRPC includes in some of asio-grpc's files. It only affects certain gRPC versions.

I currently do not have access to such gRPC versions, but I think I fixed the issue on the master branch. Do you have a way of confirming that? Otherwise I will try to obtain such older gRPC version.

I will get back with version numbers.

This should be fixed in asio-grpc v2.9.2

will verify and close soon.

fixed in 2.9.3