Re: How should I Input the path of compiling .proto files?
I have the same problem. Tried 2.0.2 release, the problem still exist. Here the error: protoc.exe --cpp_out=. C:\Projects\Apps_main\C++\Common\test.proto C:/Projects/Apps_main/C++/Common/test.pb.h: while trying to create directory ./C:: Invalid argument C:/Projects/Apps_main/C++/Common/test.pb.cc: while trying to create directory ./C:: Invalid argument On Sep 2, 2:22 pm, Kenton Varda [EMAIL PROTECTED] wrote: On Tue, Sep 2, 2008 at 10:06 AM, [EMAIL PROTECTED] wrote: the console display: Unknow generator option: d This is a bug which will be fixed in 2.0.1 which should be released any day now. You can get the release candidate here: http://groups.google.com/group/protobuf/files --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: Popping values from repeated fields
Currently, no, you can only clear the whole list and start over. I would be amenable to a patch, though, if people feel this would be a useful addition. On Wed, Oct 15, 2008 at 8:36 PM, Andrew Wachira [EMAIL PROTECTED] wrote: In the Java language. On 10/15/08, Kenton Varda [EMAIL PROTECTED] wrote: In which language? On Wed, Oct 15, 2008 at 1:50 AM, Andy [EMAIL PROTECTED] wrote: Hi, We can push values onto repeated fields. Is there a way of popping values from the same? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: How should I Input the path of compiling .proto files?
You need to specify a --proto_path, like: protoc --proto_path=C:\Projects\Apps_main\C++\Common --cpp_out=. C:\Projects\Apps_main\C++\Common\test.proto There is a bug in protoc which causes it to print the wrong error here -- it should have reported that your input file was not in the proto_path. That will be fixed in the next version. On Thu, Oct 16, 2008 at 9:41 AM, [EMAIL PROTECTED] wrote: I have the same problem. Tried 2.0.2 release, the problem still exist. Here the error: protoc.exe --cpp_out=. C:\Projects\Apps_main\C++\Common\test.proto C:/Projects/Apps_main/C++/Common/test.pb.h: while trying to create directory ./C:: Invalid argument C:/Projects/Apps_main/C++/Common/test.pb.cc: while trying to create directory ./C:: Invalid argument On Sep 2, 2:22 pm, Kenton Varda [EMAIL PROTECTED] wrote: On Tue, Sep 2, 2008 at 10:06 AM, [EMAIL PROTECTED] wrote: the console display: Unknow generator option: d This is a bug which will be fixed in 2.0.1 which should be released any day now. You can get the release candidate here: http://groups.google.com/group/protobuf/files --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: Protocol Buffer as XCode Framework
I'm not sure how mac frameworks work, but it looks like your compiler is not linking against the protobuf library. On Thu, Oct 16, 2008 at 9:41 AM, Carlos Gamboa [EMAIL PROTECTED] wrote: Hello. I am trying to add the protocol buffer to my application (for iphone) and i have been struggling for about 2 days to figure out how to do it. I am new to XCode too by the way. I tried creating a framework like Brian Olson suggested on this post: http://groups.google.com/group/protobuf/browse_thread/thread/65e781a5e8d6fc06# , but i do not know all the things i need to include this framework. Here are the steps im following. 1. Compile the protobuf project 2. On my project, right click on Frameworks and click 'add-existing frameworks' and then locate the 'macosx/build/release/ protobuf.framework' folder. The framework is located at the documents folder (documents/macosx) 3. I created my .pb.h and .pb.c with the 'protoc' program and added them to my project. 4. I try to compile, but the following 18 errors appear like this: google::protobuf::UnknownFieldSet::UnknownFieldSet(), referenced from: myNamespace::myProto::myProto() in myProto.pb.o ... I really dont care if i add it as a framework or as direct code, but i have not been able to include the protocol buffer as part of my project. Can anyone please help me? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: using RPC on asynchronous server
Many (most?) servers at Google use asynchronous protobuf RPC. I'm not sure how to answer your question, though. Can you be more specific? On Tue, Oct 14, 2008 at 7:16 AM, muqu [EMAIL PROTECTED] wrote: Anybody can shine some light on their experience on using the PB RPC on an asynchronous server, like whether RPC is well-designed for it or any potential pitfalls? I find the for async server, matching a response to the original request is kind of a pain. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: Patch to quiet compiler warnings from generated service code
I've made this change in SVN. Thanks. On Thu, Oct 2, 2008 at 12:40 PM, Caleb [EMAIL PROTECTED] wrote: When run with high warning levels, gcc complains that the 'request' and 'response' arguments are unused for all of the stub service functions generated by the protoc compiler. Here's the 2-line patch to fix this. --- src/google/protobuf/compiler/cpp/cpp_service.cc.orig 2008-10-02 15:36:56.0 -0400 +++ src/google/protobuf/compiler/cpp/cpp_service.cc 2008-10-02 15:37:07.0 -0400 @@ -219,8 +219,8 @@ printer-Print(sub_vars, void $classname$::$name$(::google::protobuf::RpcController* controller,\n - const $input_type$* request,\n - $output_type$* response,\n + const $input_type$*,\n + $output_type$*,\n ::google::protobuf::Closure* done) {\n controller-SetFailed(\Method $name$() not implemented.\); \n done-Run();\n --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---