gRPC Core needs C++ to build it. On Monday, January 17, 2022 at 7:15:15 AM UTC-8 Fridolin Siegmund wrote:
> Hi! > I want to integrate a grpc client in an existing c project. As an > standalone example (in C!) it compiles and works fine (cmake with > FetchConent to fetch grpc [ > https://github.com/grpc/grpc/tree/master/src/cpp#fetchcontent]). But > included in the existing project (cmake too, part to fetch/include grpc is > the same) hpack_parser.h throws 28 errors. > For example: > - > _deps/grpc-src/src/core/ext/transport/chttp2/transport/hpack_parser.h:39:5: > note: in expansion of macro ‘None’ > > - > _deps/grpc-src/src/core/ext/transport/chttp2/transport/hpack_parser.h:48:5: > note: in expansion of macro ‘None’ > > - > _deps/grpc-src/src/core/ext/transport/chttp2/transport/hpack_parser.h:67:16: > error: expected constructor, destructor, or type conversion before ‘;’ > token HPackParser(); > > - > _deps/grpc-src/src/core/ext/transport/chttp2/transport/hpack_parser.h:70:21: > error: ‘HPackParser’ does not name a type > HPackParser(const HPackParser&) = delete; > ^~~~~~~~~~~ > > I know if its working standalone the error must be on my side, but maybe > there is some known issue regarding hpack_parser when included in other > projects. I already tried to run the standalone example with the same > compiler flags as in the c project and it worked well, so this shouldn't be > the problem. > > Thanks and Greetings > -- 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 grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/8083756c-67cc-4444-a715-be2f854db327n%40googlegroups.com.