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: 57
Registered: September 2012
Member
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;


Quote:

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.
see
http://wiki.eclipse.org/CDT/User/FAQ#CDT_does_not_recognize_C.2B.2B11_features


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Paths and Symbol page overide IncludeTab
Next Topic:Nested Block Comment problem
Goto Forum:
  


Current Time: Thu Sep 26 18:06:54 GMT 2024

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

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

Back to the top