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?