Overcoming the Obstacle of Enforcing C 0x in Dev-C : A Guide to Changing Compilation Modes
Encountering the error message, "range-based-for loops are not allowed in C 98 mode," signifies that the compiler is operating in a mode that does not support the desired C 0x features, including the range-based loop. This article delves into the necessary steps to change Dev-C 's compilation mode to one compatible with C 0x.
Altering the Compiler Options
Additional Notes
By following these steps, you will have successfully changed the compilation mode in Dev-C to one that supports C 0x features, enabling you to utilize the range-based loop and other benefits of this language standard.
The above is the detailed content of How Can I Enable C 0x (or C 11) Features in Dev-C ?. For more information, please follow other related articles on the PHP Chinese website!