Using this file:
import std.net.curl, std.stdio;
void main() {
auto v1 = "http://speedtest.atl.hivelocity.net".get;
write(v1);
}
I can compile like this:
cp curl-7.66.0-win32-mingw/lib/libcurl.a curl-x86.lib
dmd -m32mscoff app.d curl-x86.lib
However if I try 64-bit:
cp curl-7.66.0-win64-mingw/lib/libcurl.a curl-x64.lib
dmd -m64 app.d curl-x64.lib
it fails:
$ ./app
std.net.curl.CurlException@std\net\curl.d(4201): Failed to load curl, tried
"libcurl.dll", "curl.dll".
Same for this:
dmd -m64 -static app.d curl-x64.lib
Comment #1 by srpen6 — 2019-09-29T01:15:08Z
never mind. looks like it was only working as the 32-bit was just pulling the DLL from my PATH