This question already has an answer here:
- C++11 functionality with MinGW 1 answer
Error in running c++11: cc1plus.exe: error: unrecognized command line option "-std=c++11"
I was trying to iteratively print c++ map using for(auto it: mymap), but it was giving an error: .\file.cpp:42:18: error: 'it' does not name a type
Also tried using g++ -std=c++11 .\file.cpp. So I get a new error: cc1plus.exe: error: unrecognized command line option "-std=c++11"
Aucun commentaire:
Enregistrer un commentaire