Re: [protobuf] C++ link error when using "repeated" with a custom message

2021-03-11 Thread 'Adam Cozzette' via Protocol Buffers
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.

Re: [protobuf] Using Protobuf Without Serialize/Deserialize Part

2021-03-11 Thread 'Adam Cozzette' via Protocol Buffers
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

[protobuf] C++ link error when using "repeated" with a custom message

2021-03-11 Thread Xavier Raemy
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: