Global variable type does not match previous declaration

Satoshi satoshi at rikarin.org
Wed Dec 13 21:39:40 UTC 2017


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


More information about the Digitalmars-d-learn mailing list