在 Ubuntu 中查找 Boost 库
Locating Boost Libraries in Ubuntu
我想构建一个利用 boost 库program_options
和iostreams
的自动工具项目。因此,我安装了这些库:
sudo aptitude install libboost-iostreams-dev libboost-program_options-dev
现在./configure
很好,程序编译了。但是,链接失败:
/usr/bin/ld: cannot find -lboost_program_options-mt
/usr/bin/ld: cannot find -lboost_iostreams-mt
这是一个有据可查的问题,可以通过修复自动工具内容或boost_program_options
链接到boost_program_options-mt
等来修复。我选择做后者,因为这不是我的项目。但是我无法找到 Ubuntu 中安装的库:
locate *boost*
返回文档和包信息的列表以及一些我不想要的 boost 库。 locate *program_options*
为空。图书馆不在/usr/lib
或/lib
...有什么想法吗?
对我来说,
它们在 ubuntu 13.04 中的/usr/lib64 下。但我会使用升压 m4让自动工具自动处理这些依赖项。因此,通过在 configure.in 中包含升压 m4,您可以指定所需的升压模块和版本。此外,它还会为您找到所需的路径。
有时这是不可能的,特别是对于较小的应用程序和自定义项目,对于将来,boost 包含位于/usr/include/boost 中,当然,这取决于系统类型和分布
相关文章:
- 查找带有 Anaconda cmake 前缀的 boost-python3
- 使用 boost::累加器::统计来查找数组的中位数
- 使用Boost ASIO查找服务器IP
- 使用 boost::asio 是一种便携式方法来查找可用端口号
- 访问Boost Bind时,共享库中的C 符号查找错误
- 使用boost在文件中查找regex
- 使用CMake查找用CLang编译的Boost
- 在Makefile中查找Boost库
- 运行时在boost::mpl::vector中查找第一个匹配项
- MSVC13正在查找错误的boost库版本
- 如何查找boost运行时版本
- 如何在运行时在boost::fusion::vector中查找元素
- 使用具有指定最大距离的 Boost Dijkstra 查找最短路径
- 在 Ubuntu 中查找 Boost 库
- 输入流运算符查找顺序与Boost.Program_options
- boost::math::p df(distribution, value) 是否使用查找表或在每次调用时计算 exp(
- 使用 Boost::累加器查找超过 (μ + 3 西格玛) 的值
- 在图形C++中查找桥梁 (BOOST)
- boost:如何按名称查找进程的进程 ID
- 如何使用C++和Boost查找纽约当地时间