首页 > Windows开发 > 详细

#error : Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported! 解决方案

时间:2016-05-28 12:49:46      阅读:456      评论:0      收藏:0      [点我收藏+]

OpenNI1.5 VS2013配置环境后,编译会出现这个错误:

错误    4    error C1189: #error :  Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported!    c:\program files\openni\include\XnPlatform.h    57    1    test

原因是OpenNI的 XnPlatform.h里边有一段版本检查代码:

#ifndef RC_INVOKED
        #if _MSC_VER < 1300 // Before MSVC7 (2003)
            #error Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions below 2003 (7.0) are not supported!
        #endif

        #if _MSC_VER > 1600 // After MSVC8 (2010)
            #error Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported!
        #endif
    #endif

解决方案:

用管理员身份运行VS,打开项目,找到报错位置(会定向到XnPlatform.h),把1600改为1900, 保存即可

#error : Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported! 解决方案

原文:http://www.cnblogs.com/asmer-stone/p/5537111.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!