January 04, 2023 [Issue 23597] New: .di files not compatible with -i | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23597 Issue ID: 23597 Summary: .di files not compatible with -i Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: dlang-bugzilla@thecybershadow.net /////// mod.di /////// void fun()() {} /////// test.d /////// import mod; void main() { fun(); } ////////////////////// $ dmd test.d # OK - compiles successfully $ dmd -i test.d # fails /usr/sbin/ld: test.o: in function `_Dmain': test.d:(.text._Dmain[_Dmain]+0x5): undefined reference to `_D3mod__T3funZQfFNaNbNiNfZv' collect2: error: ld returned 1 exit status Error: linker exited with status 1 -- |
Copyright © 1999-2021 by the D Language Foundation