[Issue 19784] DLL in BetterC mode - Symbol Undefined __acrtused_dll

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 2 13:37:03 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19784

--- Comment #2 from AlexKotik <relmail at rambler.ru> ---
(In reply to kinke from comment #1)
> This seems to be specific to the DigitalMars C runtime, see
> https://digitalmars.com/ctg/acrtused.html. You may have more luck with
> -m32mscoff or -m64.

It doesn't compile with -m32mscoff or -m64 either:

> dmd -of=dll.dll -betterC -m32mscoff dll.d
lld-link.exe: error: subsystem must be defined
Error: linker exited with status 1

> dmd -of=dll.dll -betterC -m64 dll.d
lld-link.exe: error: subsystem must be defined
Error: linker exited with status 1

--


More information about the Digitalmars-d-bugs mailing list