So i was just playing around with something, just to see if its possible. Basically, i wanted to create a dll from haxe via hxcpp, then take said .dll and load it into another haxe program, again via hxcpp - and i fell at the first hurdle.
So, i have a “nothing program” (empty
Main::main), and added
-D dll_import to the build.
Firstly i get a few warnings:
haxe/lib/hxcpp/git/include\hx/Telemetry.h(33): warning C4273: '__hxcpp_gc_used_bytes': inconsistent dll linkage haxe/lib/hxcpp/git/include\hx/GC.h(34): note: see previous definition of '__hxcpp_gc_used_bytes'
Which can be fixed by prefixing the referenced functions in
HXCPP_EXTERN_CLASS_ATTRIBUTES so the signatures match.
More importantly, i get a link error:
LINK : fatal error LNK1181: cannot open input file '1.obj'
Which obviously stops the build. Anyone have any ideas about this / done this? Or what
1.obj even is?