c++ - MinGW g++ 4.8.1-4 doesn't recognize -std=c++14 -
i installed mingw following home page sourceforge , using mingw-get-setup.exe. installed g++ 4.8.1-4. gcc 4.8 supposed to support c++14 command-line switch, "unrecognized option" error.
is bug mingw? gcc? can it? since know ask, want c++14 for-each loops. i'm using iterators now, for-each improve both readability , writability.
edit: found out g++ build supports c++11, can use for-each. still no luck on c++14 support.
g++ 4.8 not support c++14, mingw quite outdated when there more new versions of gcc.
alternatives can use
if want use c++11 or c++14 on windows gcc should using 1 of following options:
- https://msys2.github.io/ (uses mingw-w64 internally).
- http://mingw-w64.org/doku.php (it supports 32-bits too).
- http://tdm-gcc.tdragon.net/.
Comments
Post a Comment