error C2338: /RTCc rejects conformant code错误解决
来源:互联网 发布:最新php环境搭建 编辑:程序博客网 时间:2024/06/10 02:31
在编译一个项目时,发现在调试版本时提示这个出错:
1>------ 已启动生成: 项目: simulation2, 配置: Debug Win32 ------
1>precompiled.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\yvals.h(112): error C2338: /RTCc rejects conformant code, so it isn't supported by the C++ Standard Library. Either remove this compiler option, or define _ALLOW_RTCc_IN_STL to acknowledge that you have received this warning.
1>已完成生成项目“simulation2.vcxproj”的操作 - 失败。
双击之后,会进入这里:
#ifdef _RTC_CONVERSION_CHECKS_ENABLED #ifndef _ALLOW_RTCc_IN_STLstatic_assert(false, "/RTCc rejects conformant code, ""so it isn't supported by the C++ Standard Library. ""Either remove this compiler option, or define _ALLOW_RTCc_IN_STL ""to acknowledge that you have received this warning."); #endif /* _ALLOW_RTCc_IN_STL */ #endif /* _RTC_CONVERSION_CHECKS_ENABLED */
Smaller Type check (/RTCc):数据截断的检测
但是STL不允许这个检查,按上面解释来说,要么关闭这个选项,要么定义
_ALLOW_RTCc_IN_STL宏
因此,我的解决方法是关闭这个检查,如下:
修改这个参数之后,再编译就可以解决。
1.你也能动手修改C编译器
http://edu.csdn.net/course/detail/5582
2.纸牌游戏开发
http://edu.csdn.net/course/detail/5538
3. 五子棋游戏开发
http://edu.csdn.net/course/detail/5487
4. RPG游戏从入门到精通
http://edu.csdn.net/course/detail/5246
5. WiX安装工具的使用
http://edu.csdn.net/course/detail/5207
6. 俄罗斯方块游戏开发
http://edu.csdn.net/course/detail/5110
7. boost库入门基础
http://edu.csdn.net/course/detail/5029
8.Arduino入门基础
http://edu.csdn.net/course/detail/4931
9.Unity5.x游戏基础入门
http://edu.csdn.net/course/detail/4810
10. TensorFlow API攻略
http://edu.csdn.net/course/detail/4495
11. TensorFlow入门基本教程
http://edu.csdn.net/course/detail/4369
12. C++标准模板库从入门到精通
http://edu.csdn.net/course/detail/3324
13.跟老菜鸟学C++
http://edu.csdn.net/course/detail/2901
14. 跟老菜鸟学python
http://edu.csdn.net/course/detail/2592
15. 在VC2015里学会使用tinyxml库
http://edu.csdn.net/course/detail/2590
16. 在Windows下SVN的版本管理与实战
http://edu.csdn.net/course/detail/2579
17.Visual Studio 2015开发C++程序的基本使用
http://edu.csdn.net/course/detail/2570
18.在VC2015里使用protobuf协议
http://edu.csdn.net/course/detail/2582
19.在VC2015里学会使用MySQL数据库
http://edu.csdn.net/course/detail/2672
阅读全文
0 0
- error C2338: /RTCc rejects conformant code错误解决
- error C2338
- error c2338 cocos2dx Vector Map List 类型错误引发
- error C2338: THE_BRACKET_OPERATOR_IS_ONLY_FOR_VECTORS__USE_THE_PARENTHESIS_OPERATOR_INSTEAD
- 解决mysql Error Code: 1366 错误
- Eigen的error C2338: INVALID_MATRIX_TEMPLATE_PARAMETERS
- 如何解决ORA-00600: internal error code, arguments: [kcratr1_lostwrt], [], [], [], []错误!
- 如何解决ORA-00600: internal error code, arguments: [kcratr1_lostwrt], [], [], [], []错误!
- 解决ORA-00600: internal error code, arguments: [kcratr_nab_less_than_odr]错误
- ORA-00600: internal error code, arguments: [keltnfy-ldmInit] 错误解决
- 解决ORA-00600: internal error code, arguments: [kcratr_nab_less_than_odr]错误
- iOS Error = NSURLErrorDomain Code=-1022 " 错误解决
- iOS Error = NSURLErrorDomain Code=-1022 " 错误解决
- 解决使用CURL出现code ERROR 60错误的问题
- MYSQL ERROR CODE 错误编号
- 解决MySql Error Code: 2006
- Eigen的使用时遇到error C2338: INVALID_MATRIX_PRODUCT问题解决
- 解决错误问题 error MSB6006: "aspnet_merge.exe" exited with code 1
- 关于Android热修复的几种解决方案
- 利用css3实现箭头
- 读入与输出
- Shader编程学习笔记(十)—— Cg语言入门2
- load 和 initialize
- error C2338: /RTCc rejects conformant code错误解决
- C++中的String函数的用法
- O_NONBLOCK vs O_NDELAY
- 穹顶之下,我们该何去何从?
- 如何将PDF格式的文件转换成TXT
- 编写一个在1,2,…,9(顺序不能变)数字之间插入+或-或什么都不插入,使得计算结果总是100的程序,并输出所有的可能性。
- Day10-31.String operator + and +=
- 疯狂java笔记之线性表
- 资深实践篇 |基于Kubernetes 1.61的Kubernetes Scheduler调度详解