gpt4 book ai didi

c++ - 如何解码 boost 库命名?

转载 作者:IT老高 更新时间:2023-10-28 13:58:56 24 4
gpt4 key购买 nike

我试图找出 gd 在 boost 库名称中的意思,但我只发现另外两个人在寻找相同的东西。

我想它应该是一个有明确记录的地方,我想找到它。

  • mt - 多头,通过 bjam threading=multi
  • 获取
  • s - bjam runtime-link=static
  • g - 使用标准和运行时支持库的调试版本。 什么 bjam 开关???
  • d - 调试 bjam variant=debug

更新

如何控制 bjam 开关控制上述变体?事实上,我唯一无法识别的是 g

最佳答案

Boost getting started windows第 6.3 节命名和 section 6.1 on Unix naming

处理-mt和d的是

-mt Threading tag: indicates that the library was built with multithreading support enabled. Libraries built without multithreading support can be identified by the absence of `-mt`.  

-d ABI tag: encodes details that affect the library's interoperability with other compiled code. For each such feature, a single letter is added to the tag as listed in this table:
Key Use this library when (Boost.Build option)
s linking statically to the C++ standard library
and compiler runtime support libraries.
(runtime-link=static)
g using debug versions of the standard and runtime support libraries.
(runtime-debugging=on)
y using a special debug build of Python.
(python-debugging=on)
d building a debug version of your code.
(variant=debug)
p using the STLPort standard library rather than
the default one supplied with your compiler.
(stdlib=stlport)

关于c++ - 如何解码 boost 库命名?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2715164/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com