gpt4 book ai didi

c++ - VS12 Buiding Boost 库 fatal error LNK1104 : cannot open file 'libboost_system-vc110-mt-gd-1_58.lib'

转载 作者:行者123 更新时间:2023-11-30 03:51:39 24 4
gpt4 key购买 nike

我一直在尝试为 Visual Studio 2012 构建 boost:asio。我已经做了 bjam,它给了我包含和 lib 地址,我将它们粘贴到 VS 设置中。现在编译器找不到“libboost_system-vc110-mt-gd-1_58.lib”,但在 stage lib 中我得到了“libboost_system-vc120-mt-gd-1_58.lib”,这可能是一个更新的版本。

我该如何解决这个问题?找了好几天都没搞定。

最佳答案

看起来您正在使用 VisualStudio 2012(正在请求 vc110 版本库),但实际上您已经为 Visual Studio 2013 (vc120) 构建了 boost 。

您需要指定正确的工具集来 boost 构建 (--toolset=msvc-11.0),而不是让他选择默认值。

关于c++ - VS12 Buiding Boost 库 fatal error LNK1104 : cannot open file 'libboost_system-vc110-mt-gd-1_58.lib' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31138514/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com