Hi all,
I am experimenting with protobuf
on Ubuntu 18.04. When I try to serialize data with a required field
missing, my code crashes with a "Can't serialize message because it is
missing required fields" message. Google tells me that this happens when
protobuf library is built in "debug" mode, which happens to be the case
with libprotobuf shipped in Ubuntu 18.04.
Is
there any way to make protobuf simply return an error (instead of
crashing) without having to build libprotobuf from source in "release"
mode? I am asking because protobuf is a key requirement in a large
project I am working on ... currently, we are installing it by doing an
"apt-get" - having to build it from source is going to be a major pain.
thanks and regards,
pramode