Global variable type does not match previous declaration

Nicholas Wilson iamthewilsonator at hotmail.com
Thu Dec 14 12:18:22 UTC 2017


On Wednesday, 13 December 2017 at 21:39:40 UTC, Satoshi wrote:
> On Wednesday, 13 December 2017 at 21:38:49 UTC, Satoshi wrote:
>> What means this error and how to solve it?
>>
>> object.d-mixin-1072(1112): Error: Global variable type does 
>> not match previous declaration with same mangled name: 
>> _D10TypeInfo_m6__initZ
>>
>> Actually, I'm working on OS with minimal D runtime and I'm 
>> unable to compile object.d
>>
>> source code:
>> https://github.com/Rikarin/Trinix/blob/a42a6e1fb4b87374b3e5ad8b9be501b080655ccd/Kernel/object.d
>>
>> Thanks
>
> Compiling with
> ldc2 -debuglib= -defaultlib= -code-model=kernel 
> -disable-red-zone -w -wi -de -O3 -mattr=-sse -I../ 
> -of=obj-amd64/object.d.o -c -deps=obj-amd64/object.d.o.o.dep 
> object.d

Can you add -vv to the command line and post the relevant portion 
of the result (i.e. the portion that correlates to the symbol 
that gives the error)?  (You'll want to pipe the output to a file 
as it produces a lot of output.)


More information about the Digitalmars-d-learn mailing list