Shared library in D on Linux

Ellery Newcomer ellery-newcomer at utulsa.edu
Tue Apr 10 12:28:45 PDT 2012


On 04/10/2012 12:21 PM, Jacob Carlborg wrote:
> On 2012-04-10 19:12, Ellery Newcomer wrote:
>
>> they would have to be for writeln to not segfault
>
> Ok, I see.
>

tried using __attribute__((constructor)) instead of _init.

If I'm getting this line to fail in rt.minfo.sortCtorsImpl:

                     /* Internal runtime error, dependency on an 
uninitialized
                      * module outside of the current module group.
                      */
                     (stackidx < modules.length) || assert(0);

would that be the problem you were referring to above?


More information about the Digitalmars-d mailing list