Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse complains about working code
Eclipse complains about working code [message #985435] Thu, 15 November 2012 06:46 Go to next message
Eclipse UserFriend
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 07:48 Go to previous message
Eclipse UserFriend
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
Previous Topic:Paths and Symbol page overide IncludeTab
Next Topic:Nested Block Comment problem
Goto Forum:
  


Current Time: Mon Jul 07 04:42:24 EDT 2025

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

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

Back to the top