Re: Posix dynamic library initialization and finalization

2014-12-13 Thread Jacob Carlborg via Digitalmars-d
On 2014-12-13 01:38, Adam D. Ruppe wrote: I was just talking on IRC with someone about a dynamic library on linux in D being called from a C program. The runtime wasn't initialized and he couldn't modify the C program to add an extra call. I kidna thought rt_init would be done automatically in

Posix dynamic library initialization and finalization

2014-12-12 Thread Adam D. Ruppe via Digitalmars-d
I was just talking on IRC with someone about a dynamic library on linux in D being called from a C program. The runtime wasn't initialized and he couldn't modify the C program to add an extra call. I kidna thought rt_init would be done automatically in a constructor segment in the library,

Re: Posix dynamic library initialization and finalization

2014-12-12 Thread Paul O'Neil via Digitalmars-d
On 12/12/2014 07:38 PM, Adam D. Ruppe wrote: I was just talking on IRC with someone about a dynamic library on linux in D being called from a C program. The runtime wasn't initialized and he couldn't modify the C program to add an extra call. I kidna thought rt_init would be done