Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse complains about working code
Eclipse complains about working code [message #985435] Thu, 15 November 2012 11:46 Go to next message
Sverre Moe is currently offline Sverre MoeFriend
Messages: 34
Registered: September 2012
Have the following C++ code which eclipse complains about. Running make gives out no error on this.
#include <unordered_map>

std::unordered_map<std::string, status> results;

std::unordered_map<std::string, status>::iterator result_iterator;


Symbol 'unordered_map' could not be resolved

Same goes for any functions used with this unordered_map.

This is not the only one eclipse have a problem with.
#include <sigc++/signal.h>
#include <sigc++/connection.h>

sigc::signal<void, bool> signal_connected;
sigc::connection conn_ml;

Eclipse have no problem with the code for sigc::signal, but complains about sigc::connection. Make goes fine and running the application also fine.

I hate having eclipse showing multiple errors where there is none. So how can I get eclipse to see that this is correct?
Re: Eclipse complains about working code [message #985858 is a reply to message #985435] Fri, 16 November 2012 12:48 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
unordered_map is a C++11 feature. You must tell the Eclipse indexer about it.

Before you ask
- search this forum
- see the FAQ
- google
Previous Topic:Paths and Symbol page overide IncludeTab
Next Topic:Nested Block Comment problem
Goto Forum:

Current Time: Sun May 20 14:18:38 GMT 2018

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

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

Back to the top