www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19498] New: undefined identifier rt_loadLibraryW


          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 puremagic.com
          Reporter: zan77137 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:

Dec 17 2018