For the adventurous: News from the LDC/Linux front
Joseph Rushton Wakeling via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jul 8 13:43:19 PDT 2014
On Tuesday, 8 July 2014 at 17:54:48 UTC, David Nadlinger wrote:
> And secondly, proper support for building druntime/Phobos as
> shared libraries and loading D shared objects dynamically has
> now arrived in LDC! As you might be aware, Martin Nowak has
> spent a considerable amount of effort on adding runtime loading
> capabilities to DMD and druntime during the last year or so.
> LDC now offers the same level of functionality, to a good part
> based on Martin's solid work. To build a copy of LDC with
> druntime/Phobos as a shared library, which is also required for
> proper runtime loading, simply pass -DBUILD_SHARED_LIBS=ON to
> CMake. Oh, and for now this is Linux-only too, sorry.
Tried building hap.random's benchmarknew with the shared-library
build of ldc, and got this error when I tried to run the
resulting executable:
Fatal Error while loading '/opt/ldc/lib/libphobos2-ldc.so.65':
The module 'std.range' is already defined in './benchmarknew'.
More information about the Digitalmars-d
mailing list