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!