Open Dimous opened 1 year ago
Hey! Old post, I know, but in case someone else finds this via search, I wanted to document the workaround.
This is a persistent issue relating to hxcpp, which is currently documented here: https://github.com/HaxeFoundation/hxcpp/issues/777
The current workaround is to find the \src\hx\libs\ssl\Build.xml
file inside of your current hxcpp
library directory, and change a line near the bottom. Change it from:
<lib name="crypt32.lib" if="windows" unless="static_link" />
to:
<lib name="crypt32.lib" if="windows" />
After running lime rebuild windows -static
, you should now be able to build your project without the linker errors.
The correct fix might be to add this library here instead: https://github.com/openfl/lime/blob/95baa58effaff3f6158d642873dd329a8f6e048a/templates/cpp/static/BuildMain.xml#L37
Hello! Subj ^
Describe the bug In the end of compilation process I get:
To Reproduce Steps to reproduce the behavior:
lime rebuild windows -static
openfl test windows -final -release -static -dce full -D no-debug -D no-traces -D nocppiaast -D analyzer-optimize
Expected behavior To build standalone exe
OpenFL Targets Windows 10 x64
Additional context I use visual studio community 2022