Cocos2d-x 3.1.1 Learning Log 10-as soon as you come, you will know box2d.

Source: Internet
Author: User
Error lnk2019: the unresolved external symbol "public: _ thiscall b2draw: b2draw (void)" ([email protected] @ [email protected]), this symbol is referenced in the function "public: _ thiscall glesdebugdraw: glesdebugdraw (float)" ([email protected] @ [email protected] @ Z ).

_ Thiscall b2world ::~ B2world (void) "([email protected] @ [email protected]). This symbol is used in the function" public: void * _ thiscall b2world :: cited in 'scalar deleting destructor' (unsigned INT) "([email protected] @ [email protected ])

This is because when writing a program, The Destructor is declared, but no destructor is defined.That is, the program uses the functions in box2d. Although declared, the program cannot find the function implementation.
Solution :( 1) Comment The Destructor ( 2) define the destructor. My solution is, in vs's corresponding include directory and source directory, right-click Add-> existing item, select the corresponding "GLES-Render.h" file and "GLES-Render.cpp" file, at this time, there will be no compilation errors

Don't understand can add my QQ group: 239982941 (cocos2d-x 3.1.1 Learning Group)

Cocos2d-x 3.1.1 Learning Log 10-as soon as you come, you will know box2d.

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: 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.