51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 5755|回复: 8
打印 上一主题 下一主题

下了cppunit-1.10.2.tar.gz,但折腾很久安装不成功,求教!

[复制链接]

该用户从未签到

1#
发表于 2006-7-19 10:58:32 | 显示全部楼层
First, you need to compile CppUnit libraries:

Open the $CPPUNIT/src/CppUnitLibraries.dsw workspace in VC++.
In the 'Build' menu, select 'Batch Build...'
In the batch build dialog, select all projects and press the build button.
The resulting libraries can be found in the $CPPUNIT/lib/ directory.
Once it is done, you need to tell VC++ where are the includes and librairies to use them in other projects. Open the 'Tools/Options...' dialog, and in the 'Directories' tab, select 'include files' in the combo. Add a new entry that points to $CPPUNIT/include/. Change to 'libraries files' in the combo and add a new entry for $CPPUNIT/lib/. Repeat the process with 'source files' and add $CPPUNIT/src/cppunit/.
回复 支持 反对

使用道具 举报

该用户从未签到

2#
发表于 2006-7-19 10:58:52 | 显示全部楼层
In tab 'C++', combo 'Code generation', set the combo to 'Multithreaded DLL' for the release configuration, and 'Debug Multithreaded DLL' for the debug configure,
In tab 'C++', combo 'C++ langage', for All Configurations, check 'enable Run-Time Type Information (RTTI)',
In tab 'Link', in the 'Object/library modules' field, add cppunitd.lib for the debug configuration, and cppunit.lib for the release configuration.
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2006-7-19 11:00:01 | 显示全部楼层
Select 'All configurations' (upper left combo)
In the 'Post-build description', enter 'Unit testing...'
In 'post-build command(s)', add a new line: $(TargetPath)$
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2006-7-19 11:01:41 | 显示全部楼层
跟着步奏来
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-5-19 00:05 , Processed in 0.063127 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表