haxeui / hxWidgets

Haxe externs (and wrappers) for wxWidgets
MIT License
77 stars 22 forks source link

Error when compiling 00-Showcase in Linux #21

Closed RafaelOliveira closed 8 years ago

RafaelOliveira commented 8 years ago

I'm using Linux Mint 17.3 and hxcpp 3.2.205. wxWidgets is installed. I tested the build.hxml and build-static.hxml. Both are showing the same error.

Error: ./src/hx/widgets/TextCtrl.cpp: In member function ‘Void hx::widgets::TextCtrl_obj::__construct(hx::widgets::Window, String, hx::Null<int>, hx::Null<int>)’:
./src/hx/widgets/TextCtrl.cpp:74:14: error: no match for ‘operator=’ (operand types are ‘cpp::Reference<wxWindow>’ and ‘cpp::Reference<wxTextCtrl>’)
   this->_ref = textRef;
              ^
./src/hx/widgets/TextCtrl.cpp:74:14: note: candidate is:
In file included from /usr/lib/haxe/lib/hxcpp/3,2,205/include/hxcpp.h:293:0,
                 from ./src/hx/widgets/TextCtrl.cpp:1:
/usr/lib/haxe/lib/hxcpp/3,2,205/include/cpp/Pointer.h:235:21: note: cpp::Reference<T> cpp::Reference<T>::operator=(const cpp::Reference<T>&) [with T = wxWindow]
    inline Reference operator=( const Reference &inRHS ) { return ptr = inRHS.ptr; }
                     ^
/usr/lib/haxe/lib/hxcpp/3,2,205/include/cpp/Pointer.h:235:21: note:   no known conversion for argument 1 from ‘cpp::Reference<wxTextCtrl>’ to ‘const cpp::Reference<wxWindow>&’
ibilon commented 8 years ago

You need a dev version of hxcpp for now.

RafaelOliveira commented 8 years ago

I compiled hxcpp, but didn't work, there is others errors now. I will wait for the next release of hxcpp.