After reading a lot of literature on the Internet, it seems that the latest versions of GCC definitely support the command-line option -std=c++11. But for some crazy reason, I get an “unrecognized command line option” even when using GCC 4.8.1, which makes no sense.
C:\newmingw\mingw32\bin>g++ -v
Using built-in specs.
COLLECT_GCC=g++
Target: i686-w64-mingw32
Configured with: [trimmed]
Thread model: win32
gcc version 4.8.1 (rev5, Built by MinGW-W64 project)
C:\newmingw\mingw32\bin>g++ -std=c++11 test.cpp
cc1plus: error: unrecognized command line option "-std=c++11"
Is there anything else that needs to be done here? TIA!
source
share