Bug 10185 – Linker errors with rdmd

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Mac OS X
Creation time
2013-05-27T10:05:00Z
Last change time
2017-07-07T22:01:08Z
Assigned to
nobody
Creator
jminer7

Attachments

IDFilenameSummaryContent-TypeSize
1217rdmd_bug.zipTest case to reproduce linker errorapplication/zip31771

Comments

Comment #0 by jminer7 — 2013-05-27T10:05:03Z
Created attachment 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.
Comment #1 by dlang-bugzilla — 2017-07-07T22:01:08Z
Fairly sure this has since been fixed, as rdmd has receieved a ton of reliability improvements since 2013. Please reopen if you can still reproduce this.