如何在 Windows 7 上的 CodeBlocks 中设置 C++11
How to set C++11 in CodeBlocks on Windows 7
我已经在Windows 7上安装了代码块。我无法选择 C++11 选项。我看了很多教程。在"全局编译器设置"中的每一个中,都有可供选择的选项(按顺序):
//have g++ follow the 1998 standard [...]
//have g++ follow the coming c++0x standard [...]
//have g++ follow the C++11 ISO standard [...]
在我的CodeBlocks版本中,缺少第三个选项。
只需转到:
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
相关文章:
- 为不同配置设置MSVC_RUNTIME_LIBRARY的正确方法是什么
- 在C++/Linux中设置单调时钟的一些技巧
- 如何在选项卡视图Qt中设置一个新项目,并保存以前的项目
- 嵌套在类中时无法设置成员数据
- 需要帮助设置在C++中使用的Potrace
- 如何在自删除后将对象设置为nullptr
- 将指针设置为"nullptr"并不能防止双重删除?
- 如何在Ubuntu中使用cmake设置qt4
- ld:bind_at_load和-bitcode_bundle(Xcode设置ENABLE_bitcode=YES)不能
- 如何在boost beast http请求中设置http头
- 如何解决gcc编译器优化导致的centos双编译器设置中的分段错误
- 如何将这个C++哈希表转换为动态扩展和收缩,而不是使用硬设置的最大值
- 为什么文件名被设置为一个点,而不是在读取矢量中的文件名时
- 如何在24位SDL_Surface上设置像素的颜色
- std::设置自定义比较器
- 如何设置一个范围来提取我想要获得的信息
- 如何在C/C++中用FD_set Unix设置套接字文件描述符
- 通过选项卡的文本设置QTabWidget顺序
- 如何在 Windows 7 上的 CodeBlocks 中设置 C++11
- 使用CodeBlocks在Windows上设置Boost