Home > Backend Development > C++ > How Can I Enable C 0x/C 11 Support in Dev-C ?

How Can I Enable C 0x/C 11 Support in Dev-C ?

Linda Hamilton
Release: 2024-12-01 19:17:12
Original
163 people have browsed it

How Can I Enable C  0x/C  11 Support in Dev-C  ?

Transitioning from C 98 to C 0x Support in Dev-C

Developers striving to utilize range-based for loops may encounter limitations when using Dev-C in its default C 98 mode. To unleash the power of this feature and other C 0x enhancements, a mode change is necessary.

Solution:

To modify the compiler mode, follow these steps:

  1. Navigate to Tools -> Compiler Options.
  2. Select the "Compiler" tab.
  3. Enable the checkbox labeled, "Add the following commands when calling the compiler."
  4. In the text entry box, input either "-std=c 11" or "-std=C 0x."

These commands instruct the compiler to adhere to C 11 or C 0x standards, respectively. Once this adjustment is made, Dev-C will support all the desired C 0x features, including range-based for loops.

The above is the detailed content of How Can I Enable C 0x/C 11 Support in Dev-C ?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template