【发布时间】:2017-07-21 20:39:48
【问题描述】:
所以,我需要在同一台机器(64 位但 win10)上在 Visual Studio 2005 和 Visual Studio 2015 中构建项目。切换回 2005 年构建的项目时,Boost 认为我仍在使用 2017 年的编译器并抛出各种错误。主要是这个:Unknown compiler version
我的问题: Visual Studio 2015 是否在我的机器上设置了 boost 将查看以确定编译器版本的东西,或者 boost 是否存储了一些东西?对于我的生活,我无法弄清楚 boost 在哪里寻找这些信息。
我相信这是 boost 正在检查的地方:
#if (_MSC_VER > 1600)
# if defined(BOOST_ASSERT_CONFIG)
# error "Unknown compiler version - please run the configure tests and report the results"
# else
# pragma message("Unknown compiler version - please run the configure tests and report the results")
# endif
#endif
_MSC_VER 设置在哪里?
【问题讨论】:
-
_MSC_VER 是一个 MSVC 内置宏。它由编译器设置。也许您正在使用 SDK 编译器?
标签: visual-studio boost visual-studio-2015 visual-studio-2005