Like others, you need to enter the command line parameter std. Let's simplify for you
Here it is. By default, it will compile for the C ++ 11 standard.
NOTE. . If you follow the option above to compile non-C ++ 11 programs, you should use
g++ --std=c++98 filename.cpp
thefourtheye Jun 29 '13 at 10:19 2013-06-29 10:19
source share