[Issue 22863] New: [REG2.099] -main doesn't work anymore when used for linking only (without source modules)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 9 12:44:13 UTC 2022


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 at puremagic.com
          Reporter: kinke at 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.

--


More information about the Digitalmars-d-bugs mailing list