Issue dynamically reloading libprotobuf?

2008-09-22 Thread aaronedsinger
Hi. I have an plug-in based application under Linux that dynamically links in libprotobuf.so. The app's plug-ins also link in the library. This works fine when a plug-in is first dynamically loaded via dl_open(). However, if the plug-in is removed dl_close() and then re- opened, I get the followin

protobuf-perlxs

2008-09-22 Thread Dave Bailey
Hi, I've uploaded my Perl/XS code generator for Protocol Buffers: http://code.google.com/p/protobuf-perlxs This is a work in progress, of course. I have gotten this to work on my Linux system, but have not tested it on any other architectures. -dave --~--~-~--~~~-

Re: Does SerializeToXxx() guarantee a call to ByteSize()?

2008-09-22 Thread Kenton Varda
On Fri, Sep 19, 2008 at 7:39 PM, Leandro Lucarella <[EMAIL PROTECTED]> wrote: > > Kenton Varda, el 19 de septiembre a las 16:12 me escribiste: > > You probably shouldn't rely on this. Some of the serialization methods > will > > guarantee this, some won't. What you can do is call ByteSize() your

Re: Proto file format problem

2008-09-22 Thread Kenton Varda
I think the documentation should be changed; I'll fix that. However, negative enum values should probably be discouraged as they will always be encoded as 10 bytes on the wire. On Mon, Sep 22, 2008 at 3:08 AM, Chris <[EMAIL PROTECTED]> wrote: > > There is a disagreement between the documentation

Re: Unable to Complie and Run Example

2008-09-22 Thread Kenton Varda
Use the Makefile. If you don't have make, then don't worry about it and compile and run the Java files like you would any Java executable class. add_person_java is really just an alias for "java AddPerson". On Mon, Sep 22, 2008 at 8:16 AM, Adrian <[EMAIL PROTECTED]> wrote: > > I was able to ins

Unable to Complie and Run Example

2008-09-22 Thread Adrian
I was able to install protobuf-2.0.1 using maven and netbeans 6.1 I successfully generated protobuf-java-2.0.1.jar I copied protoc into the example directory I ran “protoc addressbook.proto --java_out=” from the windows command line to generate com/example/tutorial/AddressBookProtos.java I don’t

Re: Followup: EBNF grammar for .proto files

2008-09-22 Thread Chris
Yegor wrote: > Hi, everyone, > > I am following up on the discussion about the EBNF grammar for .proto > files: > http://groups.google.com/group/protobuf/browse_thread/thread/1cccfc624cd612da > > I am now trying port this grammar to ANTLR format and make it generate > the lexers and parsers, but

Proto file format problem

2008-09-22 Thread Chris
There is a disagreement between the documentation at http://code.google.com/apis/protocolbuffers/docs/proto.html#enum and the behavior of proto. The documentation states that "Enumerator constants must be in the range [0, 2147483647]." But the protoc program allows negative values. I happened t

Re: need help

2008-09-22 Thread Mars
On 9月22日, 下午1时48分, [EMAIL PROTECTED] wrote: > Hello Group, > > I was looking for a protocol for my java client/server application and > just found protobuf. It does look very good, but I couldn't get it > work properly, please help. Here is my setup: > > // * > // proto definiti