Re: [protobuf] Wrapping Protobuf in an extra namespace

2020-09-19 Thread Yakov Prager
Thank you very much for your answer. You've also answered my second question, confirming my observation that there is a cyclical dependency between Protoc and some generated *.pb.cc and *.pb.h files -- in particular, descriptor.pb.c. If I add an extra namespace around google::protobuf, how

Re: [protobuf] Wrapping Protobuf in an extra namespace

2020-09-18 Thread 'Adam Cozzette' via Protocol Buffers
I think this will work if you change the namespace everywhere, but the one caveat is that protobuf messages won't be interchangeable between the two protobuf versions. I.e. if you try to take a proto based on your myNamespace version and pass it to code that works with the version used by your

[protobuf] Wrapping Protobuf in an extra namespace

2020-09-17 Thread Yakov Prager
Hello friends, My company uses Protobuf as a shared library. I know that Google recommends linking Protobuf statically, especially if it is used by a shared library, but that is not an option in my case, for reasons that are beyond my control. As a result of dynamic linking, I am