Either approach can work.  It depends on whether you're willing to switch to
a C++ compiler, whether your C code compiles correctly when interpreted as
C++, and which protobuf interface you like better.  If your app is pure C
than I'd think using protobuf-c would be easier, but I haven't used it
myself.

On Mon, Feb 1, 2010 at 10:38 PM, hap497 <hap...@gmail.com> wrote:

> Hi,
>
> If I have a legacy c program, how can I take advantage of the Protocol
> Buffer library?
> Should i make my c program to call the c++ code generated by Protocol
> Buffer library?
> Or use this
> http://code.google.com/p/protobuf-c/?
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to