haxeui / haxeui-hxwidgets

The hxWidgets backend of the HaxeUI framework -
http://haxeui.org
MIT License
23 stars 7 forks source link

Compilation error on Ubuntu 16.04 - GLCanvas.cpp conversion from int to non-scalar #2

Closed cambiata closed 3 years ago

cambiata commented 7 years ago

Error: While running :g++ -I/home/jonas/haxe/haxeui-test/bin/obj/linux64/pch/haxe -Iinclude -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK -pthread -DwxUSE_WEBVIEW_WEBKIT -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=330 -m64 -DHXCPP_M64 -I/home/jonas/hxcpp/include -x c++ -frtti -Wno-invalid-offsetof ./src/hx/widgets/GLCanvas.cpp -o/home/jonas/haxe/haxeui-test/bin/obj/linux64/edf3cd3c_GLCanvas.o ./src/hx/widgets/GLCanvas.cpp: In member function ‘void hx::widgets::GLCanvas_obj::__construct(hx::widgets::Window, Array, hx::Null, hx::Null)’: ./src/hx/widgets/GLCanvas.cpp:47:66: error: conversion from ‘int’ to non-scalar type ‘cpp::Pointer’ requested HXLINE( 14) HX_VARI( ::cpp::Pointer< Int >,attribList) = (int)0; ^ Error: Build failed

ibilon commented 7 years ago

https://github.com/haxeui/hxWidgets/commit/9306b53ffe54147983b1f9838be7e993c46dba43 could have fix that one