Shared Object with DMD v2.031

teo teo.ubuntu.remove at yahoo.com
Sun Aug 9 02:49:42 PDT 2009


On Sun, 09 Aug 2009 17:22:14 +0800, zxp wrote:

> teo 写道:
>> I have difficulties creating a Shared Object (.so) with D. Is it
>> possible? Can I use classes defined in the library from the executable?
>> 
>> 
> All the steps have been done successfully on FreeBSD 7.2 with DMD v1.046
> + gcc v  4.2.1 20070719.
> 
> The running of this line
>      writefln("testMe: %d", testMe());
> is OK.
> 
> However, when running this line
>    writefln("Test class: %d", (new Test(3)).get());
> I got core dumped. The dumped file is so huge nearly 1G.
> 
> Maybe I should report this bug?

Have a look at the bug Sergey reported:
http://d.puremagic.com/issues/show_bug.cgi?id=3226

Maybe this is the cause.


More information about the Digitalmars-d-learn mailing list