Re: [protobuf]

2011-06-23 Thread Enrico Viappiani
I've tried to build the project manually with the example makefile, the 2 executables works well. I believe that the linking option that makes the correct linking is `pkg-config --cflags --libs protobuf`.. now the question is.. how can i put them into Eclipse? but it's not a protobuf question anymo

[protobuf] Re: Read multiple protobufs from single file

2011-06-23 Thread mjs483
Kind of what I suspected. Alright, thanks! On Jun 23, 12:41 pm, Jason Hsueh wrote: > There's not enough information: > seehttp://code.google.com/apis/protocolbuffers/docs/techniques.html#stre... > > > > > > > > On Thu, Jun 23, 2011 at 8:55 AM, mjs483 wrote: > > Hi, > > > Is there any way to rea

Re: [protobuf]

2011-06-23 Thread Jason Hsueh
Yeah, it appears you aren't linking against the protobuf runtime. Did you set up eclipse to build from the makefile in the examples directory? On Thu, Jun 23, 2011 at 8:46 AM, Enrico Viappiani wrote: > I've installed protobuf 2.4.1 on ubuntu, running configure,make, make > check and make install,

Re: [protobuf] Read multiple protobufs from single file

2011-06-23 Thread Jason Hsueh
There's not enough information: see http://code.google.com/apis/protocolbuffers/docs/techniques.html#streaming On Thu, Jun 23, 2011 at 8:55 AM, mjs483 wrote: > Hi, > > Is there any way to read a protobuf from a file input stream without > consuming the entire file? Say for example if the file co

[protobuf] Read multiple protobufs from single file

2011-06-23 Thread mjs483
Hi, Is there any way to read a protobuf from a file input stream without consuming the entire file? Say for example if the file contains more than just one protobuf? I'd like to archive a stream of protobufs to a file for later analysis by simply writing them one after another to a single file wi

[protobuf]

2011-06-23 Thread Enrico Viappiani
I've installed protobuf 2.4.1 on ubuntu, running configure,make, make check and make install, and everything seems fine. Then I've tried to compile the examples code in the packet, "make cpp" , I've obtained the .cc and .h from the .proto file. In Eclipse CDT, I've imported those 2 files, along wit

Re: [protobuf] Re: Self describing messages

2011-06-23 Thread Jason Hsueh
Oh, I missed that you were reading the FileDescriptorSet from a separate file, not the same stream. This isn't exactly "self describing" since when you transmit the message you assume the recipient knows what type the message is, and has access to the FileDescriptorSet. See http://code.google.com/a

[protobuf] Re: Issue 305 in protobuf: CodedInputStream constructors missing.

2011-06-23 Thread protobuf
Comment #1 on issue 305 by roxsan.p...@videotron.ca: CodedInputStream constructors missing. http://code.google.com/p/protobuf/issues/detail?id=305 Close this issue, the constructor has been inlined in the .h - makefile error including previous version ... -- You received this message beca

[protobuf] Issue 305 in protobuf: CodedInputStream constructors missing.

2011-06-23 Thread protobuf
Status: New Owner: liuj...@google.com Labels: Type-Defect Priority-Medium New issue 305 by roxsan.p...@videotron.ca: CodedInputStream constructors missing. http://code.google.com/p/protobuf/issues/detail?id=305 We just upgraded to protobuf 2.4.1 from 2.2 and get the followin linking error:

[protobuf] Re: Self describing messages

2011-06-23 Thread slookin
Thanks Jason, It is all my code (link to real java class - http://test.look-in.net/pf/pf.zip. Could you give me links with examples or explain why i should "serializes the FileDescriptorSet"? On Jun 22, 8:35 pm, Jason Hsueh wrote: > On Wed, Jun 22, 2011 at 3:30 AM, slookin wrote: > > I tryi