[Issue 793] New: OBJ file names conflict => linker error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 4 09:25:00 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=793

           Summary: OBJ file names conflict => linker error
           Product: D
           Version: 1.00
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: nick.atamas at gmail.com


.obj files conflict when I use the -od flag to redirect
intermediate output to a directory. Shouldn't obj files get the name of their
package? So, sdl.timer.obj instead of just timer.obj.

e.g.

c:\proj> bud -odbin src/main.d
[proj]
  |--[bin]
  \--[src]
      |--[A]
      |  \--Timer.d
      |
      |--[sdl]
      |   \--timer.d
      |
      \--main.d  #imports and uses both timers


This will cause a linker error because bin/Timer.obj will be overwritten by
bin/timer.obj.

Problem experienced on Windows. Should exist on all other OSes.


-- 



More information about the Digitalmars-d-bugs mailing list