MinGW g ++ 4.8.1-4 does not recognize -std = C ++ 14

I installed MinGW by following their home page with my sourceforge and using mingw-get-setup.exe. This is installed by g ++ 4.8.1-4. GCC 4.8 is supposed to support C ++ 14 using the command line, but I just get an "unrecognized option" error.

Is this a bug with MinGW? With GCC? What can I do about it?Since I know someone will ask, I want C ++ 14 for my for-each loops. I'm using iterators for now, but both readability and writeability will improve for each one.

EDIT: Found that my build g ++ supports C ++ 11, so I can use for each. But still no luck in supporting C ++ 14.

+3


source to share


1 answer


g ++ 4.8 just doesn't support C ++ 14, also MinGW is pretty outdated as more newer versions of gcc came out.

Alternatives you can use



If you really want to use C ++ 11 or C ++ 14 on Windows with gcc, you should use one of the following:

+7


source







All Articles