status of shared libs

Ellery Newcomer ellery-newcomer at utulsa.edu
Mon Apr 8 09:14:27 PDT 2013


On Monday, 8 April 2013 at 04:35:59 UTC, Maxim Fomin wrote:
>
> DMD inserts some additional info in object file if main() is 
> present and sometimes it is required. One of the solutions is 
> to use dummy D module (with main function defined) which 
> forwards startup arguments to C main function.

My target is python extension modules. I can't touch c main. I 
can provide a dummy _Dmain and then manually start up and shut 
down the d runtime; that's the way PyD's been doing it for the 
last seven years, but I think it breaks when you have more than 
one shared lib.


More information about the Digitalmars-d mailing list