Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error with hxcpp target #20

Open
yuhengh opened this issue Jul 6, 2016 · 0 comments
Open

Compile error with hxcpp target #20

yuhengh opened this issue Jul 6, 2016 · 0 comments

Comments

@yuhengh
Copy link

yuhengh commented Jul 6, 2016

Hi,

I got this error when compiling my project using any hxcpp target.

Error: While running :xcrun --sdk macosx10.11 clang++ -I/Users/hyh/haxe_projects/starling-builder/demo/Export/mac64/cpp/obj/obj/darwin64/__pch/haxe -Iinclude -c -fvisibility=hidden -stdlib=libstdc++ -O2 -I/usr/local/lib/haxe/lib/hxcpp/3,3,49/include -DHX_MACOS -m64 -Wno-parentheses -Wno-null-dereference -Wno-unused-value -Wno-format-extra-args -Wno-bool-conversion -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=330 -x c++ -frtti -Wno-invalid-offsetof ./src/starling/display/BlendMode.cpp -o/Users/hyh/haxe_projects/starling-builder/demo/Export/mac64/cpp/obj/obj/darwin64/bb5c3b3d_BlendMode.o
./src/starling/display/BlendMode.cpp:208:130: error: no viable conversion from '::String' to 'const int'
HXLINE( 168) modes->get(name).StaticCast< ::starling::display::BlendFactor >()->factors = ::Array_obj< Int >::__new(2)->init(0,sourceFactor)->init(1,destFactor);
^~~~~~~~~~~~
/usr/local/lib/haxe/lib/hxcpp/3,3,49/include/hxString.h:130:11: note: candidate function
inline operator const char *() { return s; }
^
/usr/local/lib/haxe/lib/hxcpp/3,3,49/include/Array.h:482:48: note: passing argument to parameter 'inValue' here
Array<ELEM
> init(int inIndex, const ELEM
&inValue)
^
1 error generated.

Flash and html5 target works fine for me though. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant