Compilation error while building libprotobuf-c

42 views
Skip to first unread message

Sean

unread,
Jul 22, 2024, 11:16:35 AM7/22/24
to Protocol Buffers
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

Em Rauch

unread,
Jul 29, 2024, 10:08:06 AM7/29/24
to Sean, Protocol Buffers
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`

--
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 protobuf+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/5f0aabf5-2db4-4643-95b5-88aeeaba6a40n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages