Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 如何设置C++;Windows 7上的11英寸代码块_C++_C++11_Codeblocks - Fatal编程技术网

C++ 如何设置C++;Windows 7上的11英寸代码块

C++ 如何设置C++;Windows 7上的11英寸代码块,c++,c++11,codeblocks,C++,C++11,Codeblocks,我已经在Windows7上安装了代码块。我不能选择C++11选项。我看了很多教程。在“全局编译器设置”中的每个选项中,都有可供选择的选项(按此顺序): 在我的代码块版本中,缺少第三个选项。只需转到: Project => Build Options => Compiler Settings tab => Other Options and enter '-std=c++11' 或者,您可以访问: Settings => Compilers => Select GN

我已经在Windows7上安装了代码块。我不能选择C++11选项。我看了很多教程。在“全局编译器设置”中的每个选项中,都有可供选择的选项(按此顺序):

在我的代码块版本中,缺少第三个选项。

只需转到:

Project => Build Options => Compiler Settings tab => Other Options and enter '-std=c++11'
或者,您可以访问:

Settings => Compilers => Select GNU GCC Compiler => Other Options => -std=c++11
如果不起作用,请下载最新的GCC/MinGW编译器并转到:

Settings => Compilers => Select GNU GCC Compiler => Toolchain executables =>
Either AutoDetect or enter the path to the compiler folder =>
Save => Check again if the "g++ follow the C++11 ISO standard" is there

“代码块”对话框包含一个选项,可以添加您想要的任何设置。那么更新您的代码块怎么样?因为我在最新版本上有这个选项。或者,正如DrewDormann所建议的,手动添加此选项(命令是
-std=c++11
)。我记得,10.05没有在给定列表中包含
-std=c++11
,只有
-std=c++0x
,以及12.11,或者无论下一个版本是什么,都不起作用。程序不接受添加-std=c++11。我的版本是13.12,什么都不管用。程序不接受添加-std=c++11。我的版本是13.12。@AntoniBąk你在用什么编译器?我所能想到的是,您的编译器可能不支持c++11它是GNU GCC编译器。@AntoniBąk每个字段都是在工具链可执行文件中填写的吗?
Settings => Compilers => Select GNU GCC Compiler => Toolchain executables =>
Either AutoDetect or enter the path to the compiler folder =>
Save => Check again if the "g++ follow the C++11 ISO standard" is there