如何解码boost库命名?

sor*_*rin 53 c++ boost boost-build bjam

我试图找出这gd意味着在升级库名称中,我只发现另外两个人在寻找相同的东西.

我想它应该是一个清楚记录的地方,我想找到它.

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

更新

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

use*_*019 60

有关Unix命名的信息,请参阅Boost入门窗口部分6.3命名和第6.1节

处理-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)
Run Code Online (Sandbox Code Playgroud)

  • 请参见5.3.4-选项“ --build-type = complete”使bjam构建所有受支持的库变体。 (2认同)

Rio*_*iot 12

http://www.boost.org/doc/libs/1_35_0/more/getting_started/windows.html#library-naming的Boost文档中,约定是:

-mt Threading标记:表示库是在启用多线程支持的情况下构建的.没有多线程支持的情况下构建的库可以通过缺少-mt来识别.

-d ABI标记:对影响库与其他编译代码的互操作性的详细信息进行编码.对于每个此类功能,标记中都会添加一个字母:

Key     Use this library when:
s   linking statically to the C++ standard library and compiler runtime support libraries.
g   using debug versions of the standard and runtime support libraries.
y   using a special debug build of Python.
d   building a debug version of your code.
p   using the STLPort standard library rather than the default one supplied with your compiler.
n   using STLPort's deprecated “native iostreams” feature.

例如,如果构建代码的调试版本以与"native iostreams"模式下的静态运行时库和STLPort标准库的调试版本一起使用,则标记将为:-sgdpn.如果以上都不适用,则省略ABI标记.