On Friday, 17 January 2020 at 21:40:05 UTC, JN wrote:
stuff.d:
alias doStuff = () {};
main.d:
import stuff;
void main()
{
doStuff();
}
DMD throws compile error:
Error 42: Symbol Undefined __D5stuff9__lambda3FNaNbNiNfZv
Is this expected behavior? It tripped me while trying to use
DerelictVulkan :(
I think the problem comes from the way you compile and link your
code. I you compile both modules together like this it should
work out:
dmd -ofresult main.d stuff.d
(I'm on the phone, so I can't verify if it works atm)