March 09, 2022 [Issue 22863] New: [REG2.099] -main doesn't work anymore when used for linking only (without source modules) | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22863 Issue ID: 22863 Summary: [REG2.099] -main doesn't work anymore when used for linking only (without source modules) Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: kinke@gmx.net `dmd -main foo.o` yields an undefined `main` for any foo.o not defining a main itself - the __main.o object file doesn't make it to the linker cmdline. See https://github.com/ldc-developers/ldc/pull/3938. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply