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