On Saturday, 7 October 2023 at 22:40:58 UTC, Andrea Fontana wrote:
Question:
- Is there a way to compile curl statically with ldc for windows? If I try (using -static), it throws a runtime error.

Yes; IIRC, you need to link `curl_a.lib` *and* add `curl.exp` (as Phobos tries to find the exported functions in the .exe itself) to the linker cmdline too (both files in the LDC lib dir).

Reply via email to