Cannot open include file: 'initializer_list': No such file or directory

Posted Joekk

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cannot open include file: 'initializer_list': No such file or directory相关的知识,希望对你有一定的参考价值。


Cannot open include file: \'initializer_list\': No such file or directory

今天使用VS2012编译一个项目的时候,遇到了这个问题,上网查了一下,initializer_list 是C++11里面的新特性,VS2010,VS2012,VS2013不同程度的支持C++11的新特性。
我当时使用的编译器是

 

这个是不支持initializer_list的需要下载新版本

Visual C++ Compiler November 2012 CTP

可以直接上微软下载

https://www.microsoft.com/en-us/download/details.aspx?id=35515

安装好后
将 属性->配置属性->常规->平台工具集里面的选项改成

就可以了。


 
 
 

以上是关于Cannot open include file: 'initializer_list': No such file or directory的主要内容,如果未能解决你的问题,请参考以下文章

Cannot open include file: 'stdlibe.h': No such file or directory

Cannot open include file: 'initializer_list': No such file or directory

Cannot open include file: 'libxml/xpath.h': No such file or directory

用vc++6.0编译时Cannot open include file: 'stdio.h'这是啥地方不对

Cannot open include file: 'windows.h': No such file or directory 用的是VC++6.0

python2安装Flask-MySQLdb出现 fatal error C1083: Cannot open include file: 'mysql.h': No su ch fi