strange link error: _My_struct__xtoHashFNbNeKxSQBlQBoQBiZm _My_struct__xopEqualsMxFKxSQBlQBoQBiZb

Imperatorn johan_forsberg_86 at hotmail.com
Mon Oct 16 19:36:07 UTC 2023


On Monday, 16 October 2023 at 18:20:27 UTC, mw wrote:
> 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.

Show your code here on in Discord
https://discord.gg/wKTvGNpc


More information about the Digitalmars-d-learn mailing list