Why Protocol Buffer(protobuf )is not in C program

58 views
Skip to first unread message

santhosh Jayawadagi

unread,
Oct 18, 2016, 2:07:10 PM10/18/16
to Protocol Buffers
Protoc compiler cannot generate file for C program , why ?

Adam Cozzette

unread,
Oct 20, 2016, 1:00:19 PM10/20/16
to santhosh Jayawadagi, Protocol Buffers
We don't support C (just C++) in the main protobuf implementation, and I believe this is mostly because there has not been a lot of interest in a C implementation. However, there are some other implementations out there that support C--for example, you might want to look at upb (which we already use in the internals of the Ruby and PHP implementations), protobuf-c, and others listed here.

On Mon, Oct 17, 2016 at 10:52 PM, santhosh Jayawadagi <sans...@gmail.com> wrote:
Protoc compiler cannot generate file for C program , why ?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to prot...@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Kevin Baker

unread,
Oct 21, 2016, 1:27:34 PM10/21/16
to Protocol Buffers, sans...@gmail.com
A vote for the excellent NanoPB, it is well documented, generates clean code, and works across a wide range of embedded systems. We have been using it for many years without issues. https://koti.kapsi.fi/jpa/nanopb/

Kevin


On Thursday, October 20, 2016 at 12:00:19 PM UTC-5, Adam Cozzette wrote:
We don't support C (just C++) in the main protobuf implementation, and I believe this is mostly because there has not been a lot of interest in a C implementation. However, there are some other implementations out there that support C--for example, you might want to look at upb (which we already use in the internals of the Ruby and PHP implementations), protobuf-c, and others listed here.
On Mon, Oct 17, 2016 at 10:52 PM, santhosh Jayawadagi <sans...@gmail.com> wrote:
Protoc compiler cannot generate file for C program , why ?

--
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.
Reply all
Reply to author
Forward
0 new messages