www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Error 42: Symbol Undefined _D18TypeInfo_AC6Object6__initZ

reply "Chris Miller" <chris dprogramming.com> writes:
I'm running into this linker error
    Error 42: Symbol Undefined _D18TypeInfo_AC6Object6__initZ
with the recent DMD versions (1.004 right now), and I don't really know  
what's going on. I don't get this error with older DMD`s.

Anyone have any ideas?

The strange part is the error goes away when using -release

I guess the Z on the end means it's related to template?
Jan 30 2007
parent reply Frits van Bommel <fvbommel REMwOVExCAPSs.nl> writes:
Chris Miller wrote:
 I'm running into this linker error
    Error 42: Symbol Undefined _D18TypeInfo_AC6Object6__initZ
 with the recent DMD versions (1.004 right now), and I don't really know 
 what's going on. I don't get this error with older DMD`s.
 
 Anyone have any ideas?
 
 The strange part is the error goes away when using -release
 
 I guess the Z on the end means it's related to template?

No, it doesn't have anything to do with templates. It's the TypeInfo instance for Object[], aka typeid(Object[]). It /should/ be generated when needed... Do you have some (preferably short) example code that shows this error?
Jan 30 2007
parent torhu <fake address.dude> writes:
I get this when trying to compile a DWT app with dmd 1.004.  Works fine 
with dmd 1.0 and older.  It also happened with one of the dwt examples, 
think it was test_rowlayout.d.

  Error 42: Symbol Undefined 
_D44TypeInfo_AC3dwt8graphics9rectangle9Rectangle6__initZ


Looks similar to what Chris got, since it's a missing TypeInfo object.
Jan 31 2007