gdc 12.1: undefined references when linking separately compiled files
mw
mw at g.c
Thu Jul 6 23:46:02 UTC 2023
On Thursday, 6 July 2023 at 22:44:27 UTC, Alexibu wrote:
>
> I just encountered this problem in recently released debian
> bookworm (gdc 12.2.0), I was able to fix these undefined
> lambdas inside std library with -fall-instantiations, and a
> bunch of other undefined lambdas in my own code by changing
> template arguments of the form
> alias e = (a => a)
> to a separate definition
> auto (T)default_e(T a)
> {
> return a;
> }
> and
> alias e = default_e
Using GDC may require rewrite?
I have thought GDC use the same front-end as DMD & LDC?
More information about the Digitalmars-d-learn
mailing list