我试图找出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/

    10-10 21:23