LNK2038:检测到'boost_log_abi'不匹配:值'v2s_mt_nt5'与值'v2s_mt_nt6'不匹配 [英] LNK2038: mismatch detected for 'boost_log_abi': value 'v2s_mt_nt5' doesn't match value 'v2s_mt_nt6'

查看:945
本文介绍了LNK2038:检测到'boost_log_abi'不匹配:值'v2s_mt_nt5'与值'v2s_mt_nt6'不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在创建由boost库组成的单独的头文件之后,我尝试将其包含在现有项目中.

After creating separate header file which consists of boost libraries, then I try to include in existing project.

但是它显示以下错误:

 ::  Error  15  error LNK2038: mismatch detected for 'boost_log_abi':
 value 'v2s_mt_nt5' doesn't match value 'v2s_mt_nt6' in BoostLogger.obj 
 E:\Projects\native\dcnotificationserver\loggerutil.obj  ::

我知道以前的项目可以在Windows XP到当前的Windows OS(即)10下运行.

I know that previous project works from Windows XP to Current Windows OS (i.e.)10 .

但是我读到了Windows XP的增强支持.

But I read that boost supports from Windows XP.

出什么问题了?

如何解决?

我认为是Windows版本导致的问题?

I think the problem due to windows version?

有关更多信息,请询问我.

For further information, please ask me.


我正在使用:
编译器:msvc 10
增强版:1.60
Visual Studio 2010


I'm using:
Compiler: msvc 10
Boost version: 1.60
Visual Studio 2010

推荐答案

在将BOOST升级到1.60并将Visual Studio升级到2015之后,我遇到了类似的问题.

I encountered a similar problem after upgrading both BOOST to 1.60 and Visual Studio to 2015.

我通过将预处理器中的_WIN32_WINNT定义更改/定义为0x601副0x501来解决它.

I resolved it by changing/defining the _WIN32_WINNT definition in the preprocessor to be 0x601 vice 0x501.

我非常确定这意味着...支持Win7和更高版本的Vice XP.

I'm pretty sure this means...support Win7 and greater vice XP.

这篇关于LNK2038:检测到'boost_log_abi'不匹配:值'v2s_mt_nt5'与值'v2s_mt_nt6'不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆