Hi there,
I'm trying to build a lib in haxe and then use it in cpp target.
This were the links I was able to find that came closer of what I want to make:
http://www.wighawag.com/blog/2014/12/Hxcpp-externhttp://stackoverflow.com/questions/27343675/how-to-create-ios-osx-library-from-haxe-and-use-it-in-native-applicationhttps://github.com/fzzr-/hx.NativeModuleI'm currently stuck on the part of actually using the haxe-compiled-lib in a cpp project.
The errors I'm getting are:
Error 6 error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Object::__Field(class String const &,bool)" (?__Field@Object@hx@@UAE?AVDynamic@@ABVString@@_N@Z) D:\Projects\Code\hx.module.test\project\build\haxetest.obj PromoHxTest
Error 7 error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Object::__SetField(class String const &,class Dynamic const &,bool)" (?__SetField@Object@hx@@UAE?AVDynamic@@ABVString@@ABV3@_N@Z) D:\Projects\Code\hx.module.test\project\build\haxetest.obj PromoHxTest
Error 8 error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Anon_obj::__Field(class String const &,bool)" (?__Field@Anon_obj@hx@@UAE?AVDynamic@@ABVString@@_N@Z) D:\Projects\Code\hx.module.test\project\build\haxetest.obj PromoHxTest
Error 9 error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Anon_obj::__SetField(class String const &,class Dynamic const &,bool)" (?__SetField@Anon_obj@hx@@UAE?AVDynamic@@ABVString@@ABV3@_N@Z) D:\Projects\Code\hx.module.test\project\build\haxetest.obj PromoHxTest
Error 10 error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall cpp::IteratorBase::__Field(class String const &,bool)" (?__Field@IteratorBase@cpp@@UAE?AVDynamic@@ABVString@@_N@Z) D:\Projects\Code\hx.module.test\project\build\haxetest.obj PromoHxTest
Error 11 error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::ArrayBase::__Field(class String const &,bool)" (?__Field@ArrayBase@hx@@UAE?AVDynamic@@ABVString@@_N@Z) D:\Projects\Code\hx.module.test\project\build\haxetest.obj PromoHxTest
Error 12 error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Class_obj::__Field(class String const &,bool)" (?__Field@Class_obj@hx@@UAE?AVDynamic@@ABVString@@_N@Z) D:\Projects\Code\hx.module.test\project\build\haxetest.obj PromoHxTest
Error 13 error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Class_obj::__SetField(class String const &,class Dynamic const &,bool)" (?__SetField@Class_obj@hx@@UAE?AVDynamic@@ABVString@@ABV3@_N@Z) D:\Projects\Code\hx.module.test\project\build\haxetest.obj PromoHxTest
Error 14 error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::EnumBase_obj::__Field(class String const &,bool)" (?__Field@EnumBase_obj@hx@@UAE?AVDynamic@@ABVString@@_N@Z) D:\Projects\Code\hx.module.test\project\build\haxetest.obj PromoHxTest
Error 15 error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Interface::__Field(class String const &,bool)" (?__Field@Interface@hx@@UAE?AVDynamic@@ABVString@@_N@Z) D:\Projects\Code\hx.module.test\project\build\haxetest.obj PromoHxTest
Error 16 error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Interface::__SetField(class String const &,class Dynamic const &,bool)" (?__SetField@Interface@hx@@UAE?AVDynamic@@ABVString@@ABV3@_N@Z) D:\Projects\Code\hx.module.test\project\build\haxetest.obj PromoHxTest
Error 17 error LNK1120: 11 unresolved externals D:\Projects\Code\hx.module.test\project\build\Debug\PromoHxTest.exe PromoHxTest
I've committed my test project to this repo:
https://github.com/bmfs/hx.module.testAny suggestions, idea on what is missing?
Am I supposed to include hxcpp includes in the cpp project at all?
Thanks in advance,
Bruno