Cocos2d-x 3.1.1 Learning Log 17 -- porting error C1083: Unable to open included file: "extensions/ExtensionMacros. h": No such file or,

Source: Internet
Author: User

Cocos2d-x 3.1.1 Learning Log 17 -- porting error C1083: Unable to open included file: "extensions/ExtensionMacros. h": No such file or,

An error occurred while importing the extension package during the 2. x migration to 3.1.1 today. After multiple searches, the problem was finally solved and shared with you for reference.

Step 1: Import three packages. Import method: solution (right-click)-> Add-> existing project


Import the first libGUI. vcxproj (H: \ mycompany \ EditBoxTest \ cocos2d \ cocos \ ui \ proj. win32)


Import the second libExtensions. vcxproj (H: \ mycompany \ EditBoxTest \ cocos2d \ extensions \ proj. win32)

Import the third libCocosStudio. vcxproj (H: \ mycompany \ EditBoxTest \ cocos2d \ cocos \ editor-support \ cocostudio \ proj. win32)

After the import, perform step 2.


Step 2: reference the imported project to our project. This is also the cause of the problem ,,

Right-click the project name and choose reference> Add new reference.


Then, select the check box on the front of the newly added project.



Step 3 Add the include directory for our project

Right-click the project name and choose "properties"> "C/C ++", and add "include directory"> "edit ".



Enter the content

$ (EngineRoot)

$ (EngineRoot) cocos

$ (EngineRoot) cocos \ editor-support


Finally, compile it and there will be no such error.




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.