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
  • strange link err... mw via Digitalmars-d-learn
    • Re: strange... Imperatorn via Digitalmars-d-learn
      • Re: str... ryuukk_ via Digitalmars-d-learn
        • Re:... Imperatorn via Digitalmars-d-learn
          • ... mw via Digitalmars-d-learn
            • ... mw via Digitalmars-d-learn
    • Re: strange... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: str... mw via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... mw via Digitalmars-d-learn
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: str... mw via Digitalmars-d-learn

Reply via email to