Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Luna / GCC / C++0x: Eclipse cannot resolve array symbol(Error-Message: Symbol 'array' could not be resolved)
Luna / GCC / C++0x: Eclipse cannot resolve array symbol [message #1396370] Tue, 08 July 2014 07:53 Go to next message
Michael Stummvoll is currently offline Michael StummvollFriend
Messages: 1
Registered: July 2014
Junior Member
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?
Re: Luna / GCC / C++0x: Eclipse cannot resolve array symbol [message #1396751 is a reply to message #1396370] Tue, 08 July 2014 18:30 Go to previous messageGo to next message
Klaus km is currently offline Klaus kmFriend
Messages: 142
Registered: November 2011
Senior Member
check carefully:

http://wiki.eclipse.org/CDT/User/FAQ#CDT_does_not_recognize_C.2B.2B11_features

regards,
Klaus


Re: Luna / GCC / C++0x: Eclipse cannot resolve array symbol [message #1415771 is a reply to message #1396751] Wed, 03 September 2014 15:12 Go to previous message
Michel Lesoinne is currently offline Michel LesoinneFriend
Messages: 2
Registered: September 2014
Junior Member
The instructions on the linked page are out of date.
I don't know how to have CDT use C++11 anymore...
Previous Topic:Command Prompt Issues with Eclipse
Next Topic:Adding new commands to debugger
Goto Forum:
  


Current Time: Thu Apr 25 22:26:51 GMT 2024

Powered by FUDForum. Page generated in 0.03981 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top