protobuf shutdownprotobuflibrary的时候crash,释放的指针出错
往往是多个子项目中有多次链接使用。
解决方法:
1. 使用静态库。
2. issure中有说2.6.1还未允许多次释放,建议使用3.4.x版本。
参考:
https://github.com/protocolbuffers/protobuf/issues/3673
https://trac.videolan.org/vlc/ticket/18329#comment:12
https://github.com/protocolbuffers/protobuf/issues/206
【本文章出自博客园willaty,转载请注明作者出处,误差欢迎指出~】