1 安装Purecoverage
1.1 文件路径
1.2 license
安装完成后会集成到VC7.0中,有三个组件:
Rational PureCoverage、Rational Purify、Rational Quantify
2 工程设置
从purecoverage的帮助文档中可以看到:
1. In the Property Pages for your project, C/C++ folder, General page:
Select Program Database in the Debug Information Format property drop-down list box.
2. In the C/C++ folder, Code Generation page:
Select Default in the Basic Runtime Checks property drop-down list box.
This option setting disables the VC7 compiler's stack frame checking.
3. In the Linker folder, General page:
Select No in the Enable Incremental Linking property drop-down list box.
4. In the Linker folder, Command Line page:
In the Additional Options box add: /fixed:no.
This adds relocation information to your image file
其中,第四点很重要。
如果不设置这一条就会出现以下错误: