Cocos2dx -- cocos2dx3.1.1 run an external symbol that cannot be parsed

Source: Internet
Author: User

Cocos2dx -- cocos2dx3.1.1 run an external symbol that cannot be parsed

Use cocos2dx3.1.1 and VS2012


Created a project named test, placed under D: \ cocos2dx \ cocos2d-x-3.1.1 \ projects

Compilation passed, no problem


The scenario editor of cocostudio is used to create a scenario,

Add in HelloWorldScene. h

#include "cocostudio/Cocostudio.h"using namespace cocostudio;

Cocostudio/Cocostudio. h cannot be included

Right-click the test project --> properties --> C/C ++ --> Add the include directory and set

D: \ cocos2dx \ cocos2d-x-3.1.1 \ projects \ test \ cocos2d \ cocos \ editor-support

D: \ cocos2dx\ cocos2d-x-3.1.1 \ projects \ test \ cocos2d \ cocos

D: \ cocos2dx\ cocos2d-x-3.1.1 \ projects \ test \ cocos2d

Included, identified all the way, normal inclusion, compilation, the following error occurs

Add vcxproj and right-click one by one --> Generate

D: \ cocos2dx \ cocos2d-x-3.1.1 \ projects \ test \ cocos2d \ extensions \ proj. win32 \ libExtensions. vcxproj

D: \ cocos2dx \ cocos2d-x-3.1.1 \ projects \ test \ cocos2d \ cocos \ editor-support \ cocostudio \ proj. win32 \ libCocosStudio. vcxproj

D: \ cocos2dx \ cocos2d-x-3.1.1 \ projects \ test \ cocos2d \ cocos \ ui \ proj. win32 \ libGUI. vcxproj


Compile, not line, right-click test project --> Property --> linker --> input --> Add dependency, and attach the following three lib

LibCocosStudio. lib
LibExtensions. lib
LibGUI. lib


Click confirm all the way, compile, and run normally. If you encounter other problems, try to append the corresponding lib.

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.