Re: libphobos.so and loading libraries at runtime

2014-01-07 Thread Dicebot
On Sunday, 5 January 2014 at 20:47:44 UTC, FreeSlave wrote: But why does dmd use static linking by default? Is shared version of phobos still experimental? It is. It works pretty good in practice but Martin wanted to improve provided utilities for library/symbol loading before announcing it a

Re: libphobos.so and loading libraries at runtime

2014-01-07 Thread Sean Kelly
On Sunday, 5 January 2014 at 20:47:44 UTC, FreeSlave wrote: import core.runtime; int main() { Runtime.loadLibrary("does not care"); Runtime.unloadLibrary(null); return 0; } When I try to compile this code with 'dmd main.d', I get errors main.o: In function `_D4core7runtime7Runtime

libphobos.so and loading libraries at runtime

2014-01-05 Thread FreeSlave
import core.runtime; int main() { Runtime.loadLibrary("does not care"); Runtime.unloadLibrary(null); return 0; } When I try to compile this code with 'dmd main.d', I get errors main.o: In function `_D4core7runtime7Runtime17__T11loadLibraryZ11loadLibraryFxAaZPv': main.d:(.text._D4co