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.