问题是,最近我在我的 ubuntu 上安装了一个新版本的 boost。我有 1.46,现在我有 1.56。我现在面临的问题是一些程序无法运行,因为它们显然需要:
error while loading shared libraries: libboost_program_options.so.1.46.1: cannot open shared object file: No such file or directory
有绕过这个的方法吗?如何解决问题?
最佳答案
Boost 版本不是二进制兼容的。该应用程序需要 boost-1.46.1,它不能使用任何其他版本。
安装 boost-1.46.1 或根据可用的 boost 版本重新编译和重新链接您的应用程序。
关于c++更新 boost 版本问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29800185/