Error about cocos2d-X3.0 using extended library

Source: Internet
Author: User

Error about cocos2d-X3.0 using extended library

Well For A Long Time did not update the blog, today's whim, looked at the coocs2d-X 3. x version, the use of extended library to create TableView, error, appear

Unable to open include file: "extensions/xxxxxxx. h"

 

Let's take a look at the projects created in 3.x:

Obviously, some additional libraries are not included in the project, so we have to add them if we use them. Let's talk less about them. Let's go straight to the topic.

 

Step 1: add additional libraries

Solution-> right-click-> Add-> existing project

 

 

We need to add three additional libraries: libCocosStudio, libExtensions, and libGUI.

 

 

LibCocosStudio

Project directory/cocos2d/cocos/editor-support/cocostudio/proj. win32/libCocoStuido. vcxproj

 

 

LibExtensions

Project directory/cocos2d/extensions/proj. win32/libExtensions. vcxproj

 

LibGUI

Project directory/cocos2d/cocos/gui/proj. win32/libGUI. vcxproj

 

OK.

 

Step 2: reference a project

Right-click your project and choose reference.

 

Select

 

 

 

 

 

Step 3: Add a directory

Right-click your project and choose Properties.

C/C ++-> General-> additional include directory

 

$ (EngineRoot)

$ (EngineRoot) cocos

$ (EngineRoot) cocoseditor-support

Add these three paths

 

 

 

 

 

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.