目前,使用 g++-4.8.1,您必须通过 C++11 模式编译文件
g++ -std=c++11 -o prog.x prog.cpp
我能说的时候有计划吗
g++ -o prog.x prog.cpp
编译prog.cpp
?
也许 prog.cpp
有
-
#include <regex>
-
thread_local
-
class Widget { int member = 5; }
-
MyType operator"" myt(const char*, sze_t);
- 等等。
最佳答案
GCC 6.0:https://gcc.gnu.org/gcc-6/changes.html
The default mode for C++ is now
-std=gnu++14
instead of-std=gnu++98
.
关于c++ - Gnu C++ 什么时候会在不明确要求的情况下支持 C++11?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21221411/