[protobuf] undefined reference to `google::protobuf ...`

2022-01-20 Thread z mk
/tmp/cc4oF0nm.o: In function `tutorial::Person_PhoneType_descriptor()': addressbook.pb.cc:(.text+0x1e): undefined reference to `google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable const*, bool)' There are many similar errors when I run ”g++

[protobuf] Does "MessageToJsonString()" or "SerializeToFileDescriptor()" Support Nested Message

2022-01-20 Thread Charles Liu
Hi, Here are some question about pb convert to Json or FileDescriptor. I Got 2 Message With Map JustLike Message A { some prop.. } *Message B* *{ map* *}* *Message C* *{ map* *}* And when i call these two function with Message C, some error happens MessageToJsonString() hasn't

[protobuf] Does "MessageToJsonString()" or "DebugString()" Support Nested Message

2022-01-20 Thread Charles Liu
Hi,Here are some question about pb convert to Json or FileDescriptor. I Got 2 Message With Map JustLike Message A { some prop.. } Message B { map } Message C { map } And when i call these two function with Message C, some error happens MessageToJsonString() hasn't convert any