What does dmd 2.066 want from me?

Rikki Cattermole via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 7 17:22:43 PST 2015


On 8/01/2015 9:10 a.m., Artem Tarasov wrote:
> I'm trying to compile my software with the latest compiler, and it spits
> out the following error:
>
> $ make
> <...>
> rdmd --force --build-only -IBioD -g -L-Lhtslib -L-l:libhts.a
> -L-l:libphobos2.a -ofbuild/sambamba.o main.d
> <...>
> /tmp/.rdmd-1000/rdmd-main.d-5E103AD0DCA0998F00B4F9BA5B181EDE/objs/sambamba.o.o:(.data._D80TypeInfo_S3bio3bam4read41__T12EagerBamReadTS3bio3bam4read7BamReadZ12EagerBamRead6__initZ+0x30):
> undefined reference to
> `_D3bio3bam4read41__T12EagerBamReadTS3bio3bam4read7BamReadZ12EagerBamRead9__xtoHashFNbNeKxS3bio3bam4read41__T12EagerBamReadTS3bio3bam4read7BamReadZ12EagerBamReadZm'
>
> /tmp/.rdmd-1000/rdmd-main.d-5E103AD0DCA0998F00B4F9BA5B181EDE/objs/sambamba.o.o:(.data._D80TypeInfo_S3bio3bam4read41__T12EagerBamReadTS3bio3bam4read7BamReadZ12EagerBamRead6__initZ+0x38):
> undefined reference to
> `_D3bio3bam4read41__T12EagerBamReadTS3bio3bam4read7BamReadZ12EagerBamRead11__xopEqualsFKxS3bio3bam4read41__T12EagerBamReadTS3bio3bam4read7BamReadZ12EagerBamReadKxS3bio3bam4read41__T12EagerBamReadTS3bio3bam4read7BamReadZ12EagerBamReadZb'
>
>
> What the heck do these lines mean? Presumably they come from the recent
> change in hash implementation, but I don't use this struct in any
> dictionary whatsoever! It doesn't have opCmp either and perfectly worked
> until now.

Have you got opEqual's defined?
Its wanting that and toHash I think.


More information about the Digitalmars-d-learn mailing list