www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - anyone able to use '-cov' at all on non-trivial project? (link error ....)

reply %u <no where.com> writes:
Hi,

I just wonder if anyone able to use '-cov' at all on non-trivial project?

On small files, it works. But when I try to compile with '-cov' on a sizable
project, I have the following link error:

all.o:(.data+0x1464): undefined reference to `_D3std1c6stdlib12__ModuleInfoZ'
all.o:(.data+0x14bc): undefined reference to `_D3std1c6stdlib12__ModuleInfoZ'
all.o:(.data+0x14e0): undefined reference to `_D3std1c6stdlib12__ModuleInfoZ'
all.o:(.data+0x150c): undefined reference to `_D3std1c6string12__ModuleInfoZ'
all.o:(.data+0x1528): undefined reference to `_D3std1c6string12__ModuleInfoZ'

Anyone one know how to fix this?

Thanks.
Apr 27 2009
parent reply bearophile <bearophileHUGS lycos.com> writes:
%u:
 I just wonder if anyone able to use '-cov' at all on non-trivial project?

I think in D1 it currently doesn't work with bigger programs... I have said this last time more than one year ago, with no answers received. The problem is that I was unable to create a small bug case to offer for bugzilla, so it's not much useful. If you are able to reduce your code to the smaller that causes the problem, and then to show such code, the situation may be fixed. Bye, bearophile
Apr 27 2009
parent David Ferenczi <raggae ferenczi.net> writes:
bearophile wrote:

 %u:
 I just wonder if anyone able to use '-cov' at all on non-trivial project?

I think in D1 it currently doesn't work with bigger programs... I have said this last time more than one year ago, with no answers received. The problem is that I was unable to create a small bug case to offer for bugzilla, so it's not much useful. If you are able to reduce your code to the smaller that causes the problem, and then to show such code, the situation may be fixed. Bye, bearophile

See issue #888 in Bugzilla. http://d.puremagic.com/issues/show_bug.cgi?id=888 Regards, David
Apr 30 2009