How to change mode from c++98 mode in Dev-C++ to a mode that supports C++0x (range based for)?

Go to Tools -> Compiler Options -> “Compiler” tab

Check the checkbox labeled, “Add the following commands when calling the compiler
And add in the text entry box, “-std=c++11” or if that doesn’t work “-std=C++0x

Should be something like that anyway, I haven’t had Dev C++ installed for many years, so I had to look at some screenshots on Google to remember.

Leave a Comment