Hi,
I just encountered a strange link error: I have a struct
type My_struct
, the program compiles fine, but at link time, it errors out:
undefined reference to _My_struct__xtoHashFNbNeKxSQBlQBoQBiZm
undefined reference to _My_struct__xopEqualsMxFKxSQBlQBoQBiZb
looks like it treats My_struct type as class
type?
I'm just wondering how to fix this?
both compilers report the same link error:
DMD64 D Compiler v2.105.0
LDC - the LLVM D compiler (1.35.0):
Thanks.