On Wednesday, 11 October 2023 at 14:30:50 UTC, kinke wrote:
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).
Someone should add this to the wiki
