www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Runtime.loadLibrary linker errors


Whenever I try to compile code that relies on 
Runtime.loadLibrary, I get a linker error during compilation.

Undefined symbols for architecture x86_64:
   "_rt_loadLibrary", referenced from:
_D4core7runtime7Runtime17__T11loadLibraryZ11loadLibraryFxAaZPv in 
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to 
see invocation)
--- errorlevel 1

I'm using dmd 2.071 and ldc 0.17 on OS X. I've seen comments and 
some indications in the source that this function isn't available 
on OS X, but it's not entirely clear (forum threads are old, and 
the source in runtime is a bit over my head.)

If this code won't compile on OS X, is there an alternative?

May 26 2016