crt_constructor / LDC_global_crt_ctor not being called

kinke noone at nowhere.com
Mon Apr 13 18:31:47 UTC 2020


On Monday, 13 April 2020 at 17:32:19 UTC, Marcel wrote:
> Oh, I forgot to mention: The test program imports a static 
> library that contains the function. Both are in betterC mode.

I bet it works when specifying that object file directly on the 
cmdline. - You'll need to make sure the object file is pulled in 
from that library, either by referencing a defined symbol, or 
instructing the linker to pull in all objects (e.g., 
--whole-archive).


More information about the digitalmars-d-ldc mailing list