I suspect that your build is somehow mixing multiple protobuf versions. For
C++, the version of protoc used to generate code must exactly match the
libprotobuf library version, and it's also important that the headers you
compile against are the same version as the library you link against.
You could certainly do this, but I don't think the generated types meet the
technical definition of POJO, etc. For example, in C++ the types are not
technically POD (plain old data). That doesn't sound like it would be a
problem, though. It sounds like you plan to just use protobuf JSON
After hours of debugging, I have the following minimalist .proto file:
syntax = "proto3";
message PbCaptureResult {
bool checkedValid = 1;
}
message PbCaptureResultSequence {
PbCaptureResult captureResults = 1;
}
It compiles and links successfully. But, if I add a "repeated" like: