www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - LDC Issue 535 - duplicate symbols

I think I ran into https://github.com/ldc-developers/ldc/issues/535 a
month ago when I try to link all phobos unittests into one iOS app.
This is the easiest way I could find so far to run all unittests on an
iPhone without building a bunch of small apps.

Appears that most 16__interfaceInfosZ symbols for instantiated
interfaces end up in "(__DATA,__datacoal_nt) weak external", but for
some reason, occasionally one will end up in section "(__DATA,__const)
external" preventing the linker from ignoring extra definitions.  I
started looking at the LDC code last night, but did not see a reason why
the section would change.

Just curious if anybody might be working on a solution.  In the
meantime, I just take the troublesome unittest obj files out of the big
unittest app and build in a separate app.
-- 
Dan
Apr 04 2014