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

How to Enable C 11 Support in Eclipse CDT Indexer?

Patricia Arquette
Patricia ArquetteOriginal
2024-11-10 09:30:03781browse

How to Enable C  11 Support in Eclipse CDT Indexer?

Integrating C 11 Support in Eclipse CDT Indexer

Enabling support for the latest C standard in Eclipse CDT's indexer on Juno, Kepler, and Luna involves modifying Eclipse indexer settings.

To begin, navigate to "Project properties -> C/C General -> Preprocessor Include Paths, Macros etc." and select the "Providers" tab. Within "CDT GCC Built-in Compiler Settings," add "-std=c 0x" or "-std=c 11" to "Command to get compiler specs."

After the change, it should resemble the following:

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

This setting modifies the Eclipse indexer behaviors, allowing it to recognize C 11 features. It's worth noting that this change affects indexing only; compiler settings remain unchanged.

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