我编写了一个C ++项目,并使用了两个“ api库”:API1和API2。
API1依赖libprotobuf.so.12,API2依赖libprotbuf.so.8。
我可以成功地制作这个项目,但是运行可执行文件时出现一些错误消息。
[libprotobuf FATAL google/protobuf/stubs/common.cc:78] This program was compiled against version 2.5.0 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.2.0). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "google/protobuf/descriptor.pb.cc".)
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): This program was compiled against version 2.5.0 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.2.0). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "google/protobuf/descriptor.pb.cc".)
Aborted (core dumped)
我已经读过this post,但无法解决自己的问题。