如何使用 Visual Studio 2010 构建 CppUnit [英] How to build CppUnit with Visual Studio 2010

查看:29
本文介绍了如何使用 Visual Studio 2010 构建 CppUnit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Visual Studio 2010 构建 CppUnit(自述文件中的第一行说版本 1.13).按照说明(在网络论坛上找到,在 CppUnit 文档中找不到太多内容);我找不到有效的文件扩展名.所有文件扩展名都以,v"结尾,这个奇怪的,v"扩展名是什么?它的用途是什么?

I am trying to build CppUnit (first line in ReadMe says version 1.13) with Visual Studio 2010. Following the instructions (found on web forums, couldn't find much in CppUnit documentation); I cannot find a valid file extension. All file extensions end with ",v" what is this weird ",v" extension and what is the purpose of it?

在这一点上我很沮丧,如果有人可以帮助如何在 VS2010 项目中加载 CppUnit 并构建它......那将是一个很大的帮助!

I am frustrated at this point, if someone can help with how to load CppUnit in VS2010 project and build it....that would be a great help !

推荐答案

你指的是这个项目吗?
http://sourceforge.net/projects/cppunit

如果是这样,例如使用 TortoiseSVN 从 svn 获取最新代码:
https://cppunit.svn.sourceforge.net/svnroot/cppunit

If so, use TortoiseSVN for example to get the latest code from svn:
https://cppunit.svn.sourceforge.net/svnroot/cppunit

它包含带有 Visual Studio 2008 说明的INSTALL-VS.Net2008.txt",但它也可以应用于 Visual Studio 2010.

It contains "INSTALL-VS.Net2008.txt" with instructions for Visual Studio 2008 but it can also be applied to Visual Studio 2010.

您可能需要编辑 src\msvc6\testrunner\MsDevCallerListCtrl.cpp 并替换
version("9.0")

version("10.0")

You may have to edit src\msvc6\testrunner\MsDevCallerListCtrl.cpp and replace
version("9.0")
with
version("10.0")

只要 sln 输出 cppunit(d).lib 或您需要的任何依赖项,您就可以安全地忽略任何构建错误.

You can safely ignore any build errors as long as the sln outputs cppunit(d).lib or whichever dependencies you need.

玩得开心!:)

这篇关于如何使用 Visual Studio 2010 构建 CppUnit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆