C++ executable does not work on

67 views
Skip to first unread message

hells.gu...@gmail.com

unread,
Dec 2, 2016, 3:20:23 AM12/2/16
to Haxe
Hello.

I have written a program in haxe that establishes a connection to my remote server and downloads data. Simple, basic program. I compiled to the C++ target with the following command

haxe -main Program.hx -cpp Program

Compilation finished without any errors. The exe runs fine on my syste, However, when I tried to run the executable on another windows machine, it failed and gave the following error

Error: Could not load module std@socket_init__0

What am I missing here? I would really appreciate some help. 

Thanks.

Hugh

unread,
Dec 4, 2016, 11:34:23 PM12/4/16
to Haxe
This looks like you are missing the std.dll file on your target machine.  You could try copying this from the hxcpp/bin/Windows directory and put it next to your exe on the target machine.
But if you compile with the new version of haxe/hxcpp should not need this file.  You can also try adding "-D static_link" to the command line to link in std statically.
Reply all
Reply to author
Forward
0 new messages