OneofDescriptor has had a `file` member; it was added 7 years ago for the 3.4 release.
The error sounds like you likely are simply using an ancient version of protobuf with a relatively newer version of `libprotobuf-c` On Mon, Jul 22, 2024 at 11:16 AM Sean <[email protected]> wrote: > Hi, > > I'm trying to compile libprotobuf-c, But hitting the following compilation > error. Looks like there is a mismatch in the class definitions. How do I > got about fixing this? > > protoc-c/c_message.cc:157:65: error: ‘const class > google::protobuf::OneofDescriptor’ has no member named ‘file’; did you mean > ‘field’? > vars["foneofname"] = FullNameToC(oneof->full_name(), oneof->file()); > ^~~~ > > Thanks in advance, > Sean > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" 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/protobuf/5f0aabf5-2db4-4643-95b5-88aeeaba6a40n%40googlegroups.com > <https://groups.google.com/d/msgid/protobuf/5f0aabf5-2db4-4643-95b5-88aeeaba6a40n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" 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/protobuf/CAKRmVH_cjkhAkMW4jPCfc%3Di%3DGueXyJXNGAQJC1C%2BBYhM2JJHLQ%40mail.gmail.com.
