[Issue 13742] undefined reference to __coverage

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 7 05:11:41 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=13742

--- Comment #5 from Martin Nowak <code at dawg.eu> ---
Apparently happens because the __coverage symbols is defined twice in foo.o
(2.078.0), once as BSS symbols and once as undefined symbol.

nm lib.a

foo.o:
0000000000000000 t 
0000000000000000 d __bcoverage
0000000000000000 b __coverage
                 U __coverage
                 U _D3bar12__ModuleInfoZ

Interestingly works when you swap foo.d and bar.d on the command line.

--


More information about the Digitalmars-d-bugs mailing list