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

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

    3. 如何链接到动态提升库?

      时间:2023-06-29
          <tbody id='44YBa'></tbody>
      1. <small id='44YBa'></small><noframes id='44YBa'>

        • <bdo id='44YBa'></bdo><ul id='44YBa'></ul>
          <legend id='44YBa'><style id='44YBa'><dir id='44YBa'><q id='44YBa'></q></dir></style></legend>

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

                本文介绍了如何链接到动态提升库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我编译了 boost lib 并得到了这些.

                I compiled boost lib and got these.

                //Shared/dynamic link libraries
                
                24/03/2010  11:25 PM            53,248 boost_thread-vc80-mt-1_42.dll
                24/03/2010  11:25 PM            17,054 boost_thread-vc80-mt-1_42.lib
                24/03/2010  11:25 PM            17,054 boost_thread-vc80-mt.lib
                
                24/03/2010  11:25 PM            73,728 boost_thread-vc80-mt-gd-1_42.dll
                24/03/2010  11:25 PM            17,214 boost_thread-vc80-mt-gd-1_42.lib
                24/03/2010  11:25 PM            17,214 boost_thread-vc80-mt-gd.lib
                
                // Static libs... does not need any dlls
                
                24/03/2010  11:25 PM           381,716 libboost_thread-vc80-mt-1_42.lib
                24/03/2010  11:25 PM           381,716 libboost_thread-vc80-mt.lib
                
                24/03/2010  11:25 PM           999,552 libboost_thread-vc80-mt-gd-1_42.lib
                24/03/2010  11:25 PM           999,552 libboost_thread-vc80-mt-gd.lib
                
                24/03/2010  11:25 PM           421,050 libboost_thread-vc80-mt-s-1_42.lib
                24/03/2010  11:25 PM           421,050 libboost_thread-vc80-mt-s.lib
                
                24/03/2010  11:25 PM         1,015,688 libboost_thread-vc80-mt-sgd-1_42.lib
                24/03/2010  11:25 PM         1,015,688 libboost_thread-vc80-mt-sgd.lib
                

                在 Visual Studio 中,我使用 boost 线程库编写了一个测试应用程序.基于代码生成设置,它只要求这四个库(如多线程调试、多线程、多线程调试 dll 和多线程 dll)

                In Visual Studio, I have written a test app using the boost thread library. Based on code generation settings it asks for these four libs only (like multithreading debug, multithreading, multithreading debug dll, and multithreading dll)

                24/03/2010  11:25 PM           381,716 libboost_thread-vc80-mt-1_42.lib
                24/03/2010  11:25 PM           381,716 libboost_thread-vc80-mt.lib
                
                24/03/2010  11:25 PM           999,552 libboost_thread-vc80-mt-gd-1_42.lib
                24/03/2010  11:25 PM           999,552 libboost_thread-vc80-mt-gd.lib
                
                24/03/2010  11:25 PM           421,050 libboost_thread-vc80-mt-s-1_42.lib
                24/03/2010  11:25 PM           421,050 libboost_thread-vc80-mt-s.lib
                
                24/03/2010  11:25 PM         1,015,688 libboost_thread-vc80-mt-sgd-1_42.lib
                24/03/2010  11:25 PM         1,015,688 libboost_thread-vc80-mt-sgd.lib
                

                现在我的问题是如何将我的应用程序链接到其他 2 个库以便它使用 dll?

                Now my question is how can I link my app to the other 2 libs so that it uses the dlls?

                24/03/2010  11:25 PM            53,248 boost_thread-vc80-mt-1_42.dll
                24/03/2010  11:25 PM            17,054 boost_thread-vc80-mt-1_42.lib
                24/03/2010  11:25 PM            17,054 boost_thread-vc80-mt.lib
                
                24/03/2010  11:25 PM            73,728 boost_thread-vc80-mt-gd-1_42.dll
                24/03/2010  11:25 PM            17,214 boost_thread-vc80-mt-gd-1_42.lib
                24/03/2010  11:25 PM            17,214 boost_thread-vc80-mt-gd.lib
                

                问题 2. g、s 代表什么?

                Question 2. What does the g, s stands for?

                推荐答案

                您可以通过定义 BOOST_ALL_DYN_LINK 来强制 Boost 使用 DLL - 无论是在您的 C++ 预处理器设置中还是通过 #define 在你的 stdafx.h 预编译头文件中,例如:

                You can force Boost to use the DLLs by defining BOOST_ALL_DYN_LINK - either in your C++ preprocessor settings or by a #define in your stdafx.h pre-compiled header, e.g.:

                #define BOOST_ALL_DYN_LINK

                这篇关于如何链接到动态提升库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:哪些 Boost 库是仅标头的? 下一篇:如何转义字符串以在 Boost Regex 中使用

                相关文章

              1. <tfoot id='dbwp2'></tfoot>

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

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

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