undefined reference to `_D15TypeInfo_Struct6__vtblZ'

Johannes Pfau nospam at example.com
Mon Dec 23 04:57:14 PST 2013


Am Mon, 23 Dec 2013 12:03:09 +0000
schrieb "Mike" <none at none.com>:

> Thanks for all the help lately.  I'm sorry to be flooding this 
> list with so many questions, but I'm making good progress, and 
> still running into some things I don't quite understand.
> 
> I'm getting the following linker error as soon as I add a struct 
> to my code.
> 
> undefined reference to `_D15TypeInfo_Struct6__vtblZ'
> 

It looks like you didn't compile object.d? The vtblZ symbols are only
generated when you compile a .d file and then you have to link in the
resulting object file, importing alone is not enough.

So something like
arm-eabi-gdc object.d -o object.o
link object.o start.o -o start



More information about the D.gnu mailing list