【发布时间】:2014-07-21 02:27:26
【问题描述】:
我正在将现有解决方案从 VS2008 升级到 VS2013。我们使用 boost 1_55 库。一个项目一直在尝试链接 vc110 版本的 boost;但是当我使用 VS2013 命令行编译器构建 boost 时,我得到了 vc120 boost 库(当然)。
我的 boost auto_link.hpp 文件有
# elif defined(BOOST_MSVC) && (BOOST_MSVC < 1800)
// vc11:
# define BOOST_LIB_TOOLSET "vc110"
# elif defined(BOOST_MSVC)
// vc12:
# define BOOST_LIB_TOOLSET "vc120"
在其中,如Visual Studio 2013 (vs120) asks for wrong boost libraries 推荐的那样;那我还能尝试什么?
【问题讨论】:
-
确保使用 Visual Studio 2013 重建应用程序的每个依赖项。
-
你是对的 - 从包含目录中删除其他版本的 boost 后清理重建是答案。
标签: c++ boost visual-studio-2013