1. <small id='0akmA'></small><noframes id='0akmA'>

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

        如何指定要链接到哪个版本的 boost 库?

        时间:2023-07-19

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

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

                    <tbody id='iq0MK'></tbody>
                  本文介绍了如何指定要链接到哪个版本的 boost 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试将用 VS2012 编写的项目迁移到 VS2013.

                  I'm trying to migrate a project written in VS2012 to VS2013.

                  我成功编译了 boost 1.53.0(我第一次尝试了 1.54.0,但遇到了一些编译器错误)并得到了类似的库libboost_filesystem-vc120-mt-1_53.lib.

                  I successfully compiled boost 1.53.0 (I first tried 1.54.0, but got some compiler errors) and got libraries like libboost_filesystem-vc120-mt-1_53.lib.

                  但是在尝试构建我的项目时,链接器抱怨:

                  But when trying to build my project, the linker complains:

                  error LNK1104: cannot open file 'libboost_filesystem-vc110-mt-1_53.lib'
                  

                  我一直在我的整个解决方案中寻找一些项目设置来找出为什么它试图加载旧的库版本,但我没有找到任何东西.

                  I've been looking for some project settings in my entire solution to find out, why it's trying to load the older library version, but I didn't find anything.

                  链接器如何知道使用哪个库?我该如何解决我的问题?

                  How does the linker know, which library to use? And how can I fix my problem?

                  推荐答案

                  我在 TheArtTrooper 对此线程的回答中找到了我的问题的答案和解决方案:

                  I found the answer to my question and the solution to my problem in TheArtTrooper's answer to this thread:

                  我如何使用新的Visual Studio 2013 预览版?

                  链接器确实知道要使用哪个库,因为它在 boost/config/auto_link.hpp 中指定.

                  The linker does know which library to use, because it is specified in boost/config/auto_link.hpp.

                  这个文件少了几行代码来处理vc120版本:

                  This file is missing a few lines of code to handle the vc120 version:

                  #  elif defined(BOOST_MSVC) && (BOOST_MSVC < 1800)
                  
                       // vc11:
                  #    define BOOST_LIB_TOOLSET "vc110"
                  
                  #  elif defined(BOOST_MSVC)
                  
                       // vc12:
                  #    define BOOST_LIB_TOOLSET "vc120"
                  

                  现在它可以编译和链接了!

                  Now it compiles and links just fine!

                  这篇关于如何指定要链接到哪个版本的 boost 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:我可以使用 (boost) 绑定函数模板吗? 下一篇:如何在boost中遍历图使用BFS

                  相关文章

                  <legend id='YTnGU'><style id='YTnGU'><dir id='YTnGU'><q id='YTnGU'></q></dir></style></legend>

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