Hello!
I faced with the next problem. I
download https://github.com/google/protobuf/releases/tag/v3.1.0 protobuf
source files for c++ and build it according to src/README.md, namely:
$ ./configure
$ make
$ make check
$ sudo make install
$ sudo ldconfig
After that my app works(in syntax = "proto2";) fine except one thing:
"required" keyword lost its meaning.
I have next .proto schema:
message Msg {
required int32 foo = 1;
optional int32 bar = 2;
}
When I try serialize data where "foo" field is absent, I do NOT recieve any
error message.
But when I link my app with standard ubuntu 14.04 package:
libprotobuf-dev=2.5.0-9ubuntu1, I get next error message: "Can.t serialize
message of type .Msg. because it is missing required fields foo".
Note. I also build
with https://github.com/google/protobuf/releases/tag/v2.5.0 sources and the
problem still exist.
Can anyone help me? Thanks in advance!
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.