On Linux, compile with -cov, then there's link error: http://www.digitalmars.com/d/archives/digitalmars/D/bugs/6712.html :(.data+0x93bc): more undefined references to `_D3std1c6stdlib12__ModuleInfoZ' follow
Same problem, tried with lastest 1.002. Seems happen with large bases of code. Small examples on: http://digitalmars.com/d/code_coverage.html works.
Fixed DMD 1.005
Problem still exists with dmd-1.005
This problem still exist on Linux with v2.012. Again, the small example sieve.d works fine; but bigger programs won't link. Since this bug has been around for a while, raise the priority.
And error msg: /project/dmd/bin/../lib/libphobos2.a(gc.o):(.data+0x30): multiple definition of `_D3std2gc12__ModuleInfoZ' /project/dmd/bin/../lib/libphobos2.a(gc.o):(.data+0x0):first defined here ‘_D3std1c4time12__ModuleInfoZ’undefined more undefined references to `_D3std1c6stdlib12__ModuleInfoZ' follow
I checked the library: $ nm ../dmd/lib/libphobos2.a | grep _D3std1c4time12__ModuleInfoZ $ nm ../dmd/lib/libphobos2.a | grep _D3std1c6stdlib12__ModuleInfoZ $ nm ../dmd/lib/libphobos2.a | grep _D3std2gc12__ModuleInfoZ 00000000 D _D3std2gc12__ModuleInfoZ 00000030 D _D3std2gc12__ModuleInfoZ U _D3std2gc12__ModuleInfoZ
I don't encounter the problem with v2.032 on Linux.
Status of this? Close with WORKSFORME if it's fixed.
Please reopen if necessary.