Compiling problem

Monkey Targets Forums/Android/Compiling problem

Yahfree(Posted 2011) [#1]
Just updated to the lastest version of monkey..

I'm getting this error now when I try to compile for Android:



Here's the source code that it's pointing to:
class bb_tween_TweenEquationCall extends Object{
	public bb_tween_TweenEquationCall bb_TweenEquationCall_new(){
		bb_std_lang.pushErr();
		bb_std_lang.errInfo="C:/Users/Aaron/Documents/Work/Binary/Mobile/CrackTheEgg/tween.monkey<204>";
		bb_tween_TweenEquationCall bbt_=this;
		bb_std_lang.popErr();
		return bbt_;
	}
	public float bbm_Call(float bbt_t,float bbt_b,float bbt_c,float bbt_d){
//ERROR LINE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
		bb_std_lang.pushErr();
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
		}
}


I see the error, but why is it there?


therevills(Posted 2011) [#2]
I think its the strict return issue, are you using Strict in your code?

Mark is working on this:
http://www.monkeycoder.co.nz/Community/post.php?topic=1515&post=14023


Yahfree(Posted 2011) [#3]
Yeah, I think your right. I wrote 99% strict code, I just forgot the return/function type. but the problem now is: I don't know what type each overridden function is supposed to be? Function Main:Int() works, but using Void on the OnCreate etc.. methods doesn't work. The examples show unstrict versions..


Jesse(Posted 2011) [#4]
OnCreate, OnUpdate and OnRender are all Int. Just set them to int and return 0 or 1. It doesn't matter.


Yahfree(Posted 2011) [#5]
Okay, everything compiles with strict.. but it still won't pass the java compiling.. I think it has something to do with abstract methods:

the erroring code is this:

The method bbm_Call is supposed to return a float, but doesn't return anything. I get that.

But here's the equivalent Monkey code for the class TweenEquationCall:


Whatcha think?