如何使用 Visual Studio 2010 构建 CppUnit
我正在尝试使用 Visual Studio 2010 构建 CppUnit(自述文件中的第一行显示版本 1.13)。按照说明进行操作(在网络论坛上找到,在 CppUnit 文档中找不到太多内容);我找不到有效的文件扩展名。所有文件扩展名都以“,v”结尾,这个奇怪的“,v”扩展名是什么?它的用途是什么?
我现在很沮丧,如果有人可以帮助如何在 VS2010 项目中加载 CppUnit 并构建它....那将是一个很大的帮助!
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?
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 !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您指的是这个项目吗?
http://sourceforge.net/projects/cppunit
如果是这样,请使用 TortoiseSVN 获取最新代码来自 svn:
https://cppunit.svn.sourceforge.net/svnroot/cppunit
它包含“安装-VS.Net2008.txt”,包含 Visual Studio 2008 的说明,但它也可以应用于 Visual Studio 2010。
您可能需要编辑 src\msvc6\testrunner\MsDevCallerListCtrl.cpp 并替换
版本(“9.0”)
与
version("10.0")
只要 sln 输出 cppunit(d).lib 或您需要的任何依赖项,您就可以安全地忽略任何构建错误。
玩得开心! :)
Are you referring to this project?
http://sourceforge.net/projects/cppunit
If so, use TortoiseSVN for example to get the latest code from svn:
https://cppunit.svn.sourceforge.net/svnroot/cppunit
It contains "INSTALL-VS.Net2008.txt" with instructions for Visual Studio 2008 but it can also be applied to Visual Studio 2010.
You may have to edit src\msvc6\testrunner\MsDevCallerListCtrl.cpp and replace
version("9.0")
with
version("10.0")
You can safely ignore any build errors as long as the sln outputs cppunit(d).lib or whichever dependencies you need.
Have fun! :)
我已成功将 CPPUNIT 1.12.1 转换为 VS2010 解决方案。此处描述: http://blogs.powersoft.ca/erict/archive/2012/02/21/cppunit-in-vs2010ndashwith-a-sample.aspx 可以从那里下载解决方案。
I've successfully converted CPPUNIT 1.12.1 to be a VS2010 solution. It's described here: http://blogs.powersoft.ca/erict/archive/2012/02/21/cppunit-in-vs2010ndashwith-a-sample.aspx and the solution can be downloaded from there.
我刚刚找到了一个在 VS2010 中非常容易构建的版本(又名按 1 按钮):
http://www.comp.nus.edu.sg/~cs3215 /tools/cppunitAll.html
这真的很好,因为它有一个可以直接打开的 .sln 文件。它还包括一个教程;)
通过 google.de 找到的
版本 1.12.1
玩得开心!
I just found a version which is really easy to build in VS2010(aka push 1 button):
http://www.comp.nus.edu.sg/~cs3215/tools/cppunitAll.html
It's really nice because it has a .sln file which you can open directly. Also it includes a tutorial ;)
Found it with google.de
It's version 1.12.1
Have fun!