www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18301] New: `Error: no object files to link` when passing a

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 puremagic.com
          Reporter: timothee.cour2 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

--
Jan 25 2018