Shared library with C API
Ellery Newcomer via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Mon Jun 2 11:59:25 PDT 2014
On Friday, 30 May 2014 at 17:37:04 UTC, Etienne wrote:
>
> I was wondering, isn't it easier to put this initialization in
> a static this(), in the D module directly?
no. use pragma(LDC_global_crt_ctor).
fyi pyd builds shared libraries in the same way you want to
https://bitbucket.org/ariovistus/pyd/src/7fe2f9cf98da2fbd2b26bb30a5d93245c25ec742/infrastructure/d/python_so_linux_boilerplate.d?at=default
More information about the digitalmars-d-ldc
mailing list