How to compile Phobos with other D code to create a shared library?

kinke noone at nowhere.com
Mon May 31 20:32:11 UTC 2021


On Monday, 31 May 2021 at 19:21:52 UTC, data pulverizer wrote:
> ldc2 jbasic.d -O3 -link-defaultlib-shared --betterC 
> --boundscheck=off -nogc -shared -of=jbasic.so

The problem is almost certainly `-betterC`, which disables 
linking against Phobos and druntime.


More information about the Digitalmars-d-learn mailing list