www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19784] New: DLL in BetterC mode - Symbol Undefined

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

          Issue ID: 19784
           Summary: DLL in BetterC mode - Symbol Undefined __acrtused_dll
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: relmail rambler.ru

When I try compiling a simple Windows DLL using DMD it works fine, but when I
try doing it in BetterC mode I get "Error 42: Symbol Undefined __acrtused_dll".
I guess the compiler generates calls to this function while compiling a DLL and
this function is not defined in Cruntime, but rather defined in Druntime or
Phobos. I think it should be possible to compile DLLs in BetterC mode, so this
is a bug.

--
Mar 31 2019