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

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

Barbara Streisand
Barbara StreisandOriginal
2024-11-20 21:56:17615browse

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

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!

Statement:
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