Tuesday, April 23, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1088  / 2 Years ago, mon, february 21, 2022, 2:44:31

https://stackoverflow.com/questions/9131763/eclipse-cdt-c11-c0x-support



I come from that website.



I have a C++ project that compiles with g++-4.8 without problems. I just wanted to use std::int8_t from the cstdint file.



Problem is the eclipse indexer can't resolve the name.



I went to the csdint file and in the initial macro it expands __cplusplus to 199711L instead of 201103L.



In my project settings I added std=c++11 and in the compiler flags I addded GXX_EXPERIMENTAL_CXX0X



And did I say it compiles?



It's very frustrating, I suppose I can live without the indexer, but then again what is the purpose of an IDE if it's giving me error false positives.


More From » c++

 Answers
4

I found my answer in here: http://www.eclipse.org/forums/index.php/t/490066/



Go to Project Properties->Paths and Symbols->Symbols Tab->GNU C++->__cplusplus Symbol and change to 201103L


[#26718] Monday, February 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
laceanz

Total Points: 86
Total Questions: 113
Total Answers: 104

Location: Australia
Member since Thu, Jan 26, 2023
1 Year ago
;