[Issue 12754] MAC link error for template to static value

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 15 17:33:52 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12754

--- Comment #10 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to Vladimir Panteleev from comment #9)
> bash-3.2$ dmd -run main.d mylib.a

No, that's not right. I was trying different things but this is clearly wrong.
But the point stands:

bash-3.2$ dmd main.d mylib.a
Undefined symbols for architecture x86_64:
 
"_D3foo6traits32__T10lvalueInitTS3foo4file4ImplZ10lvalueInityS3foo4file4Impl",
referenced from:
      _D3foo4file1F6__ctorMFNciZS3foo4file1F in mylib.a(file_3_46.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
--- errorlevel 1

--


More information about the Digitalmars-d-bugs mailing list