strange link error: _My_struct__xtoHashFNbNeKxSQBlQBoQBiZm _My_struct__xopEqualsMxFKxSQBlQBoQBiZb
ryuukk_
ryuukk.dev at gmail.com
Mon Oct 16 20:06:02 UTC 2023
On Monday, 16 October 2023 at 19:36:07 UTC, Imperatorn wrote:
> 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
No, show your code here on the forum, don't need to siphon out
people to Discord
With the forums the problem + solution will be saved for other
people
More information about the Digitalmars-d-learn
mailing list