www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20587] New: _rt_loadLibrary symbol not found

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

          Issue ID: 20587
           Summary: _rt_loadLibrary symbol not found
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Mac OS X
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: jarnold visionable.com

I'm trying to compile a small test program:

module MacOS.tf;

import std.stdio;
import core.runtime;

void main() {
  void* vhandle = Runtime.loadLibrary("igvideo");
}

on Mac OSX Catalina, and I am getting the following error:

(dmd-2.090.1) dmd tf.d
Undefined symbols for architecture x86_64:
  "_rt_loadLibrary", referenced from:
      __D4core7runtime7Runtime__T11loadLibraryZQoFMxAaZPv in tf.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: linker exited with status 1



--
Feb 19 2020