[protobuf] protobuf newbie questions
Hi, I'm new to protobuf library. I have generated a .h and .cc file out of a sample .proto file by using protoc.exe on windows. I want to know 1. Can I use above generated files on MAC without any change? 2. Can I use the same files generated using 32 bit protoc.exe on windows for 64 build configuation? 3. Apart from linking to different module for debug/release 32/64 bit, Do I require to make anything extra? Thanks, -- 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+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
Re: [protobuf] protobuf newbie questions
On Wed, Jun 18, 2014 at 1:04 AM, ajay.sonaw...@gmail.com wrote: Hi, I'm new to protobuf library. I have generated a .h and .cc file out of a sample .proto file by using protoc.exe on windows. I want to know 1. Can I use above generated files on MAC without any change? Yes. 2. Can I use the same files generated using 32 bit protoc.exe on windows for 64 build configuation? Yes. 3. Apart from linking to different module for debug/release 32/64 bit, Do I require to make anything extra? No. Just make sure the generated code and protobuf runtime lib are compiled with the same configurations. AFAIK protoc always generates the same source code regardless of how it's built. It doesn't make much sense to require the generated code to be compiled on the same platform as protoc because they may use different programming languages. Protoc happens to be written in C++, but it could have been written in other languages like Python. I don't think we want protoc to generate C++ code differently depending on what platform protoc is built. The only factors that should affect the generated code should be: protobuf version, flags used when invoking protoc and your .proto file. Thanks, -- 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+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
Re: [protobuf] Newbie questions
Speaking specifically to protobuf-net: 1: there is no formal xml spec, and you should generally **only** need this for writing a template file, but passing -t:xml to protogen should do what you ask 2: do you mean without using the plugin? There is a command-line tool protogen included in the zip Marc On 2 November 2010 12:06, Ofir Ben-Ezra ofir.bene...@gmail.com wrote: Hi, I'm rather new to protocol buffers and to protobuf-net. I have 2 questions: 1. I'm trying to find out how can I generate XML file from a given .proto file and vice versa? 2. I know this is done automatically in VS2008 plug in, but how can I generate C# classes from a given .proto file? Thanks, Ofir -- 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.comprotobuf%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/protobuf?hl=en. -- Regards, Marc -- 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.
Re: [protobuf] Newbie questions
On Tue, Nov 2, 2010 at 5:06 AM, Ofir Ben-Ezra ofir.bene...@gmail.comwrote: Hi, I'm rather new to protocol buffers and to protobuf-net. I have 2 questions: 1. I'm trying to find out how can I generate XML file from a given .proto file and vice versa? I'm not aware of any tool for this. 2. I know this is done automatically in VS2008 plug in, but how can I generate C# classes from a given .proto file? Google does not provide a C# implementation, but there are a couple third-party ones. You would have to follow the documentation for one of those projects. Thanks, Ofir -- 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.comprotobuf%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.