Compiles but does not link
Paul D Anderson via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 24 17:24:21 PDT 2015
The code snippet below compiles but the linker fails with Error
42: Symbol undefined.
What am I doing wrong?
void main()
{
int foo(int a);
alias FP = int delegate(int);
FP fp = &foo;
}
Paul
More information about the Digitalmars-d-learn
mailing list