Help to improve speed

Walter Bright newshound1 at digitalmars.com
Tue Jun 10 14:10:03 PDT 2008


Jacob Carlborg wrote:
> If I use the -cov switch or the switches in the link (-fprofile-arcs 
> -ftest-coverage) I get this output, building with dsss:
> 
> Undefined symbols:
>   "___gcov_init", referenced from:
>       global constructors keyed to 0__D10phonecode23mapHaain _phonecode2.o
>       global constructors keyed to 

I found that when I get those messages, using gcc (not ld) to link and 
passing it -fprofile-arcs and -ftest-coverage solves the problem. 
Clearly, gcc is adding some undocumented library to the ld command.



More information about the Digitalmars-d mailing list