目前,使用 g++-4.8.1,您必须通过以下方式以 C++11 模式编译文件
Currently, with g++-4.8.1 you have to compile a file in C++11-mode via
g++ -std=c++11 -o prog.x prog.cpp
有什么计划可以说吗
g++ -o prog.x prog.cpp
编译prog.cpp?
也许 prog.cpp 有
#include thread_localclass Widget { int member = 5;}MyType operator"" myt(const char*, sze_t);GCC 6.0: https://gcc.gnu.org/gcc-6/changes.html
C++ 的默认模式现在是 -std=gnu++14 而不是 -std=gnu++98.
The default mode for C++ is now
-std=gnu++14instead of-std=gnu++98.
这篇关于Gnu C++ 何时会在不明确要求的情况下支持 C++11?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
fpermissive 标志有什么作用?What does the fpermissive flag do?(fpermissive 标志有什么作用?)
如何在我不想编辑的第 3 方代码中禁用来自 gccHow do you disable the unused variable warnings coming out of gcc in 3rd party code I do not wish to edit?(如何在我不想编辑的第 3 方代码中禁
使用 GCC 预编译头文件Precompiled headers with GCC(使用 GCC 预编译头文件)
如何在 OS X 中包含 omp.h?How to include omp.h in OS X?(如何在 OS X 中包含 omp.h?)
如何让 GCC 将 .text 部分编译为可写在 ELF 二进制文How can I make GCC compile the .text section as writable in an ELF binary?(如何让 GCC 将 .text 部分编译为可写在 ELF 二进制文件中?)
GCC、字符串化和内联 GLSL?GCC, stringification, and inline GLSL?(GCC、字符串化和内联 GLSL?)