【问题标题】:Build debug version of Boost on CentOS 7在 CentOS 7 上构建 Boost 的调试版本
【发布时间】:2016-02-03 12:27:44
【问题描述】:

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

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

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

【问题讨论】:

    标签: linux boost build centos bjam


    【解决方案1】:

    我认为应该可以。

    如果像你一样构建并使用 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”的任何匹配。

    【讨论】:

    • 是的,我想是的。命名约定似乎仅适用于 Windows 构建。 Boost 文档完全不正确。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-09
    • 2020-12-29
    • 2018-10-04
    • 1970-01-01
    相关资源
    最近更新 更多