[protobuf] Re: Exporting Proto Classes from Shared Libraries

2012-02-15 Thread Alexander Pensky
The problem is the way the static initializers work. If you export the classes from a .pb.cc file as part of a shared library (.so), their initializers will run every time you load the .so. But these initializers need to add entries to tables which are in libprotobuf.so, and the same

[protobuf] Re: Issue 361 in protobuf: Fix warnings

2012-02-15 Thread protobuf
Comment #8 on issue 361 by van...@gmail.com: Fix warnings http://code.google.com/p/protobuf/issues/detail?id=361 I've fixed all warnings in protobuf itself, only warnings for unittests left: google/protobuf/compiler/cpp/cpp_unittest.cc:878:5: ошибка: case value «12589235» not in

[protobuf] Re: Issue 361 in protobuf: Fix warnings

2012-02-15 Thread protobuf
Comment #9 on issue 361 by van...@gmail.com: Fix warnings http://code.google.com/p/protobuf/issues/detail?id=361 This patch is for protobuf version 2.4.1 There several types of warnings left: unused-variable, conversion-null, overflow, switch All signed versus unsinged warnings fixed