1. <small id='QAUAi'></small><noframes id='QAUAi'>

      <bdo id='QAUAi'></bdo><ul id='QAUAi'></ul>

    1. <tfoot id='QAUAi'></tfoot>
      <legend id='QAUAi'><style id='QAUAi'><dir id='QAUAi'><q id='QAUAi'></q></dir></style></legend>
      <i id='QAUAi'><tr id='QAUAi'><dt id='QAUAi'><q id='QAUAi'><span id='QAUAi'><b id='QAUAi'><form id='QAUAi'><ins id='QAUAi'></ins><ul id='QAUAi'></ul><sub id='QAUAi'></sub></form><legend id='QAUAi'></legend><bdo id='QAUAi'><pre id='QAUAi'><center id='QAUAi'></center></pre></bdo></b><th id='QAUAi'></th></span></q></dt></tr></i><div id='QAUAi'><tfoot id='QAUAi'></tfoot><dl id='QAUAi'><fieldset id='QAUAi'></fieldset></dl></div>

    2. 如何判断一个库是用/mt 还是/md 编译的?

      时间:2023-10-06

        <tbody id='nLzWh'></tbody>
    3. <legend id='nLzWh'><style id='nLzWh'><dir id='nLzWh'><q id='nLzWh'></q></dir></style></legend>

        <small id='nLzWh'></small><noframes id='nLzWh'>

          <bdo id='nLzWh'></bdo><ul id='nLzWh'></ul>
          <i id='nLzWh'><tr id='nLzWh'><dt id='nLzWh'><q id='nLzWh'><span id='nLzWh'><b id='nLzWh'><form id='nLzWh'><ins id='nLzWh'></ins><ul id='nLzWh'></ul><sub id='nLzWh'></sub></form><legend id='nLzWh'></legend><bdo id='nLzWh'><pre id='nLzWh'><center id='nLzWh'></center></pre></bdo></b><th id='nLzWh'></th></span></q></dt></tr></i><div id='nLzWh'><tfoot id='nLzWh'></tfoot><dl id='nLzWh'><fieldset id='nLzWh'></fieldset></dl></div>
              • <tfoot id='nLzWh'></tfoot>

                本文介绍了如何判断一个库是用/mt 还是/md 编译的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                给定一个编译的lib,有没有办法通过查看它来判断它是用/md还是/mt编译的(也许使用 dumpbin 工具)?

                Given a compiled lib, is there a way to tell if it was compiled with /md or /mt just by looking at it (maybe with dumpbin tool)?

                dumpbin/directives foo.lib 是针对 lib 未使用 /GL 开关编译的情况的解决方案.是否可以选择检查以这种方式优化的 lib 文件?

                dumpbin /directives foo.lib is a solution for the case where the lib was not compiled with /GL switch. Is there an option to inspect a lib file that was optimized in such a way?

                推荐答案

                是的,您可以使用 dumpbin 的 /DIRECTIVES 选项来查找 .lib 中的对象想要链接到哪些运行时库:

                Yes, you could use dumpbin's /DIRECTIVES option to find which runtime libraries the objects in the .lib want to link with:

                dumpbin /directives foo.lib
                

                在此处查找指定的运行时库的实例.例如,您可能会看到:

                Look for instances of the runtime libraries specified here. For example, you might see:

                /DEFAULTLIB:MSVCRTD(使用/MDd 编译的模块)

                /DEFAULTLIB:MSVCRTD (module compiled with /MDd)

                /DEFAULTLIB:MSVCRT(使用/MD 编译的模块)

                /DEFAULTLIB:MSVCRT (module compiled with /MD)

                /DEFAULTLIB:LIBCMT(使用/MT 编译的模块)

                /DEFAULTLIB:LIBCMT (module compiled with /MT)

                可能会有很多 /DEFAULTLIB 指令,因此您可以使用以下术语进行搜索:

                There will probably be many /DEFAULTLIB directives, so you can search using terms like:

                dumpbin /DIRECTIVES foo.lib | find /i "msvcr"
                

                这篇关于如何判断一个库是用/mt 还是/md 编译的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:与类型“LPCWSTR"的参数不兼容; 下一篇:赋值运算符“="是原子的吗?

                相关文章

                最新文章

                • <bdo id='w7sRG'></bdo><ul id='w7sRG'></ul>
                <i id='w7sRG'><tr id='w7sRG'><dt id='w7sRG'><q id='w7sRG'><span id='w7sRG'><b id='w7sRG'><form id='w7sRG'><ins id='w7sRG'></ins><ul id='w7sRG'></ul><sub id='w7sRG'></sub></form><legend id='w7sRG'></legend><bdo id='w7sRG'><pre id='w7sRG'><center id='w7sRG'></center></pre></bdo></b><th id='w7sRG'></th></span></q></dt></tr></i><div id='w7sRG'><tfoot id='w7sRG'></tfoot><dl id='w7sRG'><fieldset id='w7sRG'></fieldset></dl></div>

                  1. <small id='w7sRG'></small><noframes id='w7sRG'>

                    <legend id='w7sRG'><style id='w7sRG'><dir id='w7sRG'><q id='w7sRG'></q></dir></style></legend>
                  2. <tfoot id='w7sRG'></tfoot>