Luna / GCC / C++0x: Eclipse cannot resolve array symbol [message #1396370] |
Tue, 08 July 2014 03:53  |
Eclipse User |
|
|
|
Hi, I am using the "Eclipse IDE for C/C++ Developers". I have a newly created project with default-settings except I changed Properties -> C/C++ Build-> Settings -> GCC C++ Compiler -> Dialect to "ISO C++11 (-std=c++0x)".
After pasting this code-snippet:
#include <iostream>
#include <array>
int main() {
std::array<int,10> a;
std::cout << a.size() << std::endl;
return 0;
}
eclipse marks the array declaration as an error: Symbol 'array' could not be resolved. However the project compiles and runs fine thought. I already figured out I can disable some messages via the code analysis settings, however I would prefer a way to get rid of the message without disabling code analysis.
Why does this message appear and is there a way to get rid of it?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05238 seconds