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.