新闻中心

EEPW首页 > 测试测量 > 设计应用 > C++test在对Tornado 2.2-VxWorks-5.5 simulator 下

C++test在对Tornado 2.2-VxWorks-5.5 simulator 下

作者:时间:2012-06-20来源:网络收藏

使用C++ 2.2--5.5 下针对CPP代码做单元测试时,出现不能获取测试结果的问题,反复侦测问题的缘由,查看帮助文档,终于在帮助文档中找到如下一些说明:

本文引用地址:http://www.eepw.com.cn/article/193703.htm

The default build of -5.5 (%WIND_BASE%targetconfigsimpcvxWorks.exe; -2.2) doesn't contain enough C++ features to satisfy C++'s C++ instrumentation needs in its default mode. Thus, to C++ code, you either need to build your own VxSim image with scaled-up C++ support (we recommend using all C++ features except complex numbers; at minimum) or you need to add the -DCPPTEST_SPECIAL_STD_EXCEPTIONS_HANDLING_ENABLED=0 definition to the project compilation flags. This issue does not affect -5.4 (-2.0).

帮助文档中说得很清楚,VxWorks5.5默认的缺少C++特性支持,所以解决方案就是重新构建一个支持C++特性的image,重新执行即可。

c++相关文章:c++教程




评论


相关推荐

技术专区

关闭