digitalmars.D.bugs - [Issue 15148] New: Linker error with packages
- via Digitalmars-d-bugs (34/34) Oct 03 2015 https://issues.dlang.org/show_bug.cgi?id=15148
https://issues.dlang.org/show_bug.cgi?id=15148 Issue ID: 15148 Summary: Linker error with packages Product: D Version: D2 Hardware: All OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: yazan.dabain gmail.com File structure: app.d p/package.d ----- app.d ----- import p; void main() { a(); } ----- p/package.d ----- void a() {} ------------------------ Compiling using `dmd app.d p/package.d` succeeds except for the linker failing with: app.o: In function `_Dmain': p/package.d:(.text._Dmain+0x5): undefined reference to `_D1p1aFZv' collect2: error: ld returned 1 exit status --- errorlevel 1 ------------------------ Tested with 2.068.2 and 2.067.1. --
Oct 03 2015