Shared library in D on Linux

Jacob Carlborg doob at me.com
Mon Apr 9 23:31:20 PDT 2012


On 2012-04-09 23:58, Ellery Newcomer wrote:
> On 04/09/2012 03:31 PM, "Timo Westkämper" <timo.westkamper at gmail.com>"
> wrote:
>>
>>
>> For some reasons, the _init and _fini parts don't yet work properly.
>>
>
> what's wrong with them? if it is a link problem, use gcc -nostartfiles.
> Well, I'm doing that, and it compiles and rt_init is called, but doesn't
> seem to be calling the module constructors, so maybe that is a very bad
> idea.

The module info (contains the module constructors) need to be setup 
differently when linking as a shared library.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list