linux - 在 CentOS 7 上构建调试版本的 Boost

标签 linux boost build centos bjam

我正在尝试使用以下命令在 CentOS 7 上构建 Boost 的调试版本:

./b2 runtime-link=shared runtime-debugging=on variant=debug link=shared install

但是,我在生成的库文件的名称中没有看到 gd ABI 标志。我做错了什么吗?在 Windows 上构建时一切正常。

最佳答案

我认为这应该可行。

如果像您一样构建并使用 objdump 检查生成的库之一

objdump --syms libboost_wave.so | grep debug

我明白了

...
0000000000000000 l    d  .debug_aranges 0000000000000000              .debug_aranges
0000000000000000 l    d  .debug_info    0000000000000000              .debug_info
0000000000000000 l    d  .debug_abbrev  0000000000000000              .debug_abbrev
0000000000000000 l    d  .debug_line    0000000000000000              .debug_line
0000000000000000 l    d  .debug_str     0000000000000000              .debug_str
0000000000000000 l    d  .debug_ranges  0000000000000000              .debug_ranges
...

如果在没有“runtime-debugging=on variant=debug”的情况下构建,则相应的结果不会导致“grep debug”的任何匹配。

关于linux - 在 CentOS 7 上构建调试版本的 Boost,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33497658/

相关文章:

linux - 使用 bash 脚本创建文件夹和文件

C++ 通用回调实现

c++ - Boost 捆绑属性 : Do I need to initialize all properties for each edge?

build - VSTS(在线)构建始终进行全部重建是否正确?

linux - 需要了解主机和容器中 "ulimit"的 nofile 设置

c++ - 如何确定boost的静态库路径?

linux - 有没有办法使用 API 访问 webmin

c++ - 指定 boost 信号的备用默认值2

google-chrome - 如何在不下载所有历史记录的完整源代码的情况下结帐和构建特定的 Chrome 标签/分支?

java - 将 jar 文件安装到 Maven 构建中的特定位置