[Issue 19498] New: undefined identifier rt_loadLibraryW

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 17 12:49:29 UTC 2018


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

          Issue ID: 19498
           Summary: undefined identifier rt_loadLibraryW
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: zan77137 at nifty.com

Current druntime's master doesn't work well to use Runtime.loadLibrary:

------------------------------------
void main()
{
  import core.runtime;
  // import\core\runtime.d(250): Error: undefined identifier rt_loadLibraryW, 
  //     did you mean function rt_loadLibrary?
  // Error: template instance `core.runtime.Runtime.loadLibrary!()`
  //     error instantiating
  auto kernel32 = Runtime.loadLibrary("kernel32.dll"):
  scope (exit) Runtime.unloadLibrary(kernel32);
}
------------------------------------


Probably it is caused by the following commit:
https://github.com/dlang/druntime/commit/f4abe84945e75889dea15cd61d6eb27c83e7b56d

--


More information about the Digitalmars-d-bugs mailing list