Bug 20250 – Static 64-bit failure

Status
RESOLVED
Resolution
INVALID
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2019-09-29T00:01:04Z
Last change time
2019-09-30T08:54:35Z
Assigned to
No Owner
Creator
srpen6

Comments

Comment #0 by srpen6 — 2019-09-29T00:01:04Z
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