www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10185] New: Linker errors with rdmd

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

           Summary: Linker errors with rdmd
           Product: D
           Version: unspecified
          Platform: x86_64
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: jminer7 gmail.com


--- Comment #0 from Jordan Miner <jminer7 gmail.com> 2013-05-27 10:05:03 PDT ---
Created an attachment (id=1217)
Test case to reproduce linker error

Every time I use rdmd, I end up getting linker errors with it. This time, it
was when I created a couple new files and imported them. I've attached a zip
file with the files I was using and rdmd's tmp directory. I added
objc/foundation.d and objc/util.d, but get linker errors when using code from
them. I have reduced the files some, but it could probably be reduced more.

After unpacking the zip file, this is the command I ran:

rdmd --build-only test.d

And I get:

Undefined symbols for architecture x86_64:
  "_D4objc10foundation3fooFZv", referenced from:
      __Dmain in test.o

If you delete rdmd's temporary directory, then you don't get an error.

I ran into this on OS X with DMD 2.062.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 27 2013