Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Eclipse complain about working code
Eclipse complain about working code [message #985381] Thu, 15 November 2012 05:56 Go to next message
Sverre Moe is currently offline Sverre Moe
Messages: 18
Registered: September 2012
Junior 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 complain about working code [message #985391 is a reply to message #985381] Thu, 15 November 2012 06:01 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5285
Registered: July 2009
Senior Member
Please ask at the cdt forum.

Tom

Am 15.11.12 11:56, schrieb Sverre Moe:
> 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 complain about working code [message #985392 is a reply to message #985391] Thu, 15 November 2012 06:08 Go to previous messageGo to next message
Sverre Moe is currently offline Sverre Moe
Messages: 18
Registered: September 2012
Junior Member
I thought I did... Sorry.

Should I repost or could a moderator move this one?
Re: Eclipse complain about working code [message #985414 is a reply to message #985392] Thu, 15 November 2012 06:20 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5285
Registered: July 2009
Senior Member
Repost please.
Am 15.11.12 12:08, schrieb Sverre Moe:
> I thought I did... Sorry.
>
> Should I repost or could a moderator move this one?
Previous Topic:No MBasicPackage Interface
Next Topic:Making a fixed perspective in an e4 model?
Goto Forum:
  


Current Time: Fri Aug 22 15:49:23 EDT 2014

Powered by FUDForum. Page generated in 0.02003 seconds