Shared library in D on Linux

Timo Westkämper" <timo.westkamper at gmail.com> Timo Westkämper" <timo.westkamper at gmail.com>
Tue Apr 10 13:10:55 PDT 2012


On Tuesday, 10 April 2012 at 20:02:16 UTC, Jacob Carlborg wrote:
> On 2012-04-10 21:28, Ellery Newcomer wrote:
>
>> 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?
>
> Might be. It was a while since I last tried to build shared 
> libraries with D. It was before the minfo module was created.

This might be related: 
https://github.com/D-Programming-Language/druntime/pull/114


More information about the Digitalmars-d mailing list