COCOS2DX 3.x contains ext library error Resolution

Source: Internet
Author: User

Previously used in the COCOS2DX 3.6 version of some of the things in the Ext library, using Visual Studio 2013, when compiling the error:

file or directory

The final solution is to right-click the project-Properties-Configuration Properties-c/c++-Additional include directory, add contains $ (engineroot)

The solution is as follows:

Think about, open the project path, found that the project path/cocos/extensions/under the ExtensionMacros.h this file is the project contains the path configuration is incorrect.

Right-click on Project-Properties-Configuration Properties-c/c++-Additional include directory, click to open the found inside contains:

$ (engineroot) cocos\audio\include$ (engineroot) external$ (engineroot) external\chipmunk\include\chipmunk$ ( Engineroot) Extensions ...

Macro Engineroot refers to the project path/cocos/

In other words, the project that cocos generated by default did include most of the libraries, but did not include $ (engineroot), causing the project not to search the path/cocos/the project path, or the official forgot to put the extensions/in some of the files ExtensionMacros.h changed to ExtensionMacros.h.

What is the cause of this problem is unknown, but the simplest solution is to right-click the project-Properties-configuration property-c/c++-Additional Include directory, add contains $ (engineroot)

COCOS2DX 3.x contains ext library error Resolution

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.