[Issue 18301] New: `Error: no object files to link` when passing a ".a" instead of a ".o" => should be supported

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 25 22:29:51 UTC 2018


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

          Issue ID: 18301
           Summary: `Error: no object files to link` when passing a ".a"
                    instead of a ".o" => should be supported
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: timothee.cour2 at gmail.com

seems like an un-necessary restriction:

dmd -c main.d
dmd main.o #ok

dmd -lib main.d
dmd main.a #Error: no object files to link

Can that be supported? 
NOTE: a workaround is to add an empty `dummy.d`:
dmd main.a dummy.d

--


More information about the Digitalmars-d-bugs mailing list