Instantiating a class in d file with an extern (c) block causes immediate segfault!

kamatsu whiteslug at gmail.com
Thu Jul 31 07:28:44 PDT 2008


On my system, when I do:

gdc *.c *.d
./a.out

I get:

segmentation fault

I can instantiate classes fine with normal D, but as soon as the extern(c) stuff creeps in bang - no classes for me!

Can you please explain what's wrong? And how I can fix it?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.d
Type: text/x-dsrc
Size: 116 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20080731/281428d2/attachment.d>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 47 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20080731/281428d2/attachment.c>


More information about the D.gnu mailing list