Hi,
Quickly, this looks like a bug with c++ target and the "super" construct.
Try a temporary variable:
var tmp = Assets.rsc.shadow;
super(tmp);
Hugh
Hi there,
I updated from svn and rebuilt for iPhone, but am getting this error
trying to compile my app now:
Users/milkmangames/dev/svn.googlecode/hxcpp//include/hx/Object.h: In
constructor 'hx::ObjectPtr<O>::ObjectPtr(const
hx::ObjectPtr<SOURCE_>&) [with SOURCE_ = hx::Object, OBJ_ =
nme::display::BitmapData_obj]':
./src/om/view/ShadowView.cpp:40: instantiated from here
/Users/milkmangames/dev/svn.googlecode/hxcpp//include/hx/Object.h:147:
error: cannot dynamic_cast
'((hx::Object*)inObjectPtr->hx::ObjectPtr<hx::Object>::mPtr)->hx::Object::__GetRealObject()'
(of type 'class hx::Object*') to type 'struct
nme::display::BitmapData_obj*' (target is not pointer or reference to
complete type)
/Users/milkmangames/dev/svn.googlecode/hxcpp//include/hx/Object.h:149:
error: invalid use of incomplete type 'struct
nme::display::BitmapData_obj'
include/nme/display/Bitmap.h:10: error: forward declaration of 'struct
nme::display::BitmapData_obj'
Called from ? line 1
class Unknown { public function new() {} } class A { public function new(u:Unknown) {} } class Test extends A { public function new() { var d:Dynamic = null; super(d); } public static function main() { } } This should be fixed on haxe SVN.