Home > other >  Output cocos2dx packaging apk times wrong return value 2
Output cocos2dx packaging apk times wrong return value 2

Time:09-23

Specific error as shown in figure
The main problem is
Rect& BaseTank: : getNextFrameBoundingBox ()
{
Auto point=getNextFramePostion ();
Auto height=this - & gt; GetContentSize (). The height;
Auto width=this - & gt; GetContentSize (). The width;
Float x=point. X - width/2;
Float y=point. Y - height/2;
Return the Rect (x, y, width, height);

}
This code only warning c4172 vs2015 compile time, output the apk compiled using CMD, error cannot be directly output changed several times I can't, I hope you can help change the great god,

CodePudding user response:

CodePudding user response:

the return value is wrong, please return the Rect

CodePudding user response:

Your screenshots of the console is warning
Wrong is a
The command line option "- c - xx compat"
Is this??
And it doesn't matter the rect or change a written
The Rect as macros, precompiled also is pretty good,
I want to jump out of the early cocos2dx pit, to embrace 3 d

CodePudding user response:

refer to the second floor handsome one IOS learn well reply:
the return value is wrong, please return a the Rect

It just didn't add const keyword in front of the function name

CodePudding user response:

The
reference 3 floor avi9111 response:
your screenshots of the console is warning
Wrong is a
The command line option "- c - xx compat"
Is this??
And it doesn't matter the rect or change a written
The Rect as macros, precompiled also is pretty good,
I want to jump out of the early cocos2dx pit, to embrace 3 d

Before an error is the return value is a function without const keyword
  • Related