Hey Oleg, I think this is not because you're using C++17 but because your build might mixed up C++11 (or 14) and C++17 when building all components that gRPC needs. Internally gRPC is being built with C++17 so it shouldn't have a build issue. If you think there is something gRPC needs to fix it, please give us a list of commands to build it. (preferably using a docker image)
Regards, Esun. On Thursday, June 9, 2022 at 6:47:55 AM UTC-7 aleh....@idt.net wrote: > Hi, I'd like to clarify one moment about building. If my project uses grpc > and I build my project with c++17. Should I build grpc with c++17 or it is > not necessary? > > I see that after building grpc 1.46.3 and abseil with c++17 I can't after > that build my project and got some under references like > ``` > undefined reference to > `google::protobuf::Empty::Empty(google::protobuf::Arena*)' > undefined reference to > `grpc::ServerContextBase::MaybeMarkCancelledOnRead()' > undefined reference to > `google::protobuf::internal::VerifyUTF8(google::protobuf::StringPiece, char > const*)' > undefined reference to > `google::protobuf::StringPiece::LogFatalSizeTooBig(unsigned long, char > const*)' > undefined reference to `bool > absl::lts_20210324::str_format_internal::FormatArgImpl::Dispatch<std::basic_string_view<char, > > std::char_traits<char> > > >(absl::lts_20210324::str_format_internal::FormatArgImpl::Data, > absl::lts_20210324::str_format_internal::FormatConversionSpecImpl, > void*)'undefined reference to > `absl::lts_20210324::str_format_internal::FormatPack(absl::lts_20210324::str_format_internal::UntypedFormatSpecImpl, > > absl::lts_20210324::Span<absl::lts_20210324::str_format_internal::FormatArgImpl > > const>)' > ``` > > and some others. > > Sincerely, Oleg > -- 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/de06e46d-3a68-4372-b2af-a990b2f15a6cn%40googlegroups.com.