Re: [protobuf] How to compile *.pb.cc as *.o?

2011-05-26 Thread Adam Skutt
On Thu, May 26, 2011 at 4:29 AM, lzhshen lzhs...@gmail.com wrote: Take addressbook.proto as example, following command does not work: c++ addressbook.pb.cc -o addressbook.o  `pkg-config --cflags protobuf` Following are error output:

[protobuf] Re: how to deal with the byte 0xFF in the business logic?

2011-01-13 Thread Adam Skutt
On Jan 13, 2:23 am, 飞 杨 youngphy.y...@dianping.com wrote: Dear sir, I found, in the protocolbuf int encode, the byte 0xFF may appear, then how can i distinguish the EOS and the business -1, the two both are -1 when use the inputstream.read().. Pay closer attention to the definition of