Home > Backend Development > C++ > How to Enable C 11 Support in the Eclipse CDT Indexer?

How to Enable C 11 Support in the Eclipse CDT Indexer?

Barbara Streisand
Release: 2024-11-20 21:56:17
Original
661 people have browsed it

How to Enable C  11 Support in the Eclipse CDT Indexer?

Enabling C 11 Support in Eclipse CDT Indexer

The Eclipse CDT indexer allows for highlighted errors in code prior to compilation. To enable support for the C 11 standard, follow these steps:

  1. Open the project properties, navigate to C/C General -> Preprocessor Include Paths, Macros etc. -> tab Providers -> CDT GCC Built-in Compiler Settings.
  2. Append -std=c 0x (or -std=c 11) to Command to get compiler specs:.
  3. The updated command should resemble:

    ${COMMAND} -E -P -v -dD ${INPUTS} -std=c++0x
    Copy after login

The indexer should now recognize C 11 features. It's important to note that these changes only affect the indexer, and compilation settings may still require modification for C 11 compatibility.

Refer to the Sources and Related sections for additional information on Eclipse CDT and C 11 support.

The above is the detailed content of How to Enable C 11 Support in the Eclipse CDT Indexer?. 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