摘要:        
问题背景1. gcov是与gcc和g++一起工作的一个覆盖率工具,一个简单的例子如下$ gcc -fprofile-arcs -ftest-coverage tmp.c$ a.out$ gcov tmp.c 90.00% of 10 source lines executed in file tmp.c Creating tmp.c.gcov.per: here2. 将编译和链接两个步骤分开,会提示错误信息undefined reference to ‘_gcov_init’$ gcc -c tmp.c -fprofile-arcs -ftest-coverage$ gcc tmp.o -..    阅读全文
        
            posted @ 2013-01-06 10:25
turtle_fly
阅读(6466)
评论(0)
推荐(1)
        
    
 
                     
                    
                 
                    
                 

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号