boost test
来源:互联网 发布:第三方服务商淘宝客 编辑:程序博客网 时间:2024/05/22 06:42
http://www.ibm.com/developerworks/cn/aix/library/au-ctools1_boost/
http://www.boost.org/doc/libs/1_51_0/libs/test/doc/html/intro.html
1. Why did I get a linker error when compiling my test program?
Boost Test Library components provide several usage variants: to create a test program you can link with the one of the precompiled library variants or use single-header variant. For example, to use Unit Test Framework you may either include the <boost/test/unit_test.hpp
> and link with libunit_test_framework.lib or you can include <boost/test/included/unit_test.hpp
> , in which case you should not need to link with any precompiled component. Note also that you should strictly follow specification on initialization function in other case some compilers may produce linker error like this.
Unresolved external init_unit_test_suite(int, char**).
The reason for this error is that in your implementation you should specify second argument of init_unit_test_suite exactly as in the specification, i.e.: char* [].
2. foradd the below in the front of your code
> > #define BOOST_TEST_DYN_LINK
> > and
> > #define BOOST_TEST_MODULE MyTest
codes like: #include <...>
and compile with $g++ -Wall xxx.cpp -lboost_unit_test_framework
refer to test_boost_suit.cpp and sample1.cpp in develop/boost/unit_test/ in ubuntu
- Boost.Test
- boost test
- boost test
- boost 的 Test
- [转]Boost Test Library
- boost test中的例子
- 使用单元测试 Boost.test
- boost unit test
- 如何使用boost.test
- boost test 编译问题
- boost.test 使用
- C++单元测试:boost.test
- boost thread test example C++
- 如何分文件编写Boost Test的test case
- boost thread/conditional variable test example
- Boost Test学习总结(C++)
- 单元测试boost test——安装【1】
- Boost Test学习总结(C++)
- linux内核学习之网络篇——通过socket通信
- Win7下.NET应用程序System.IO.FileNotFoundException问题
- Uboot中start.S源码的指令级的详尽解析 在线版
- PHP 获取时间差函数汇总
- 结构体字节对齐
- boost test
- jQuery中load的使用
- MonkeyRunner_Testing app example(1)
- 【Author : DS & MZ】 2012 ACM-ICPC 杭州网络预赛
- 在运行时修改视图
- jQuery 和 prototype 选择器的使用与注意事项
- Liferay Portal 6学习笔记1:Portal介绍
- mfc控件中显示opencv图片
- 那些年朋友劝,该知道的ASP.NET - 页面加载顺序