#error: Xiron Platform abstraction layer-win32-microsoft Visual Studio versions above (10.0) is not supported! Solution Solutions

Source: Internet
Author: User



OpenNI1.5 VS2013 The environment is configured, this error occurs when compiling:

Error 4 #error : xiron Platform abstraction layer-win32-microsoft Visual Studio versions AB Ove (10.0) is not supported! C:\Program Files\openni\include\xnplatform.h 1 test

 


The reason is that there is a version check code in 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


Solution:



Run vs with Administrator, open project, find error location (directed to XnPlatform.h), change 1600 to 1900, save



#error: Xiron Platform abstraction layer-win32-microsoft Visual Studio versions above (10.0) is not Supporte d! Solution


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.