Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » C++ 11 Symbol could not be resolved (containers)
C++ 11 Symbol could not be resolved (containers) [message #1092812] Fri, 23 August 2013 04:13 Go to next message
Mikael Öhman is currently offline Mikael Öhman
Messages: 2
Registered: August 2013
Junior Member
I have Eclipse Kepler and the latest version of CDT available from the update site.

I have added as a flag -std=c++11 and under paths and symbols I have added GXX_EXPERIMENTAL_CXX0X. My program builds and runs just fine. But eclipse has a problem resolving:

#include <unordered_set>

...

std::unordered_set<int> mySet;

Is this a known issue?
Re: C++ 11 Symbol could not be resolved (containers) [message #1093750 is a reply to message #1092812] Sat, 24 August 2013 11:51 Go to previous message
Mikael Öhman is currently offline Mikael Öhman
Messages: 2
Registered: August 2013
Junior Member
Nevermind. This link gave correct answer:

http://www.eclipse.org/forums/index.php/mv/msg/373462/909018/#msg_909018

Need to fill in -std=c++11 in "command to get compiler specs" on the discovery tab.
Previous Topic:C/C++ code formatting from command line
Next Topic:How to integrate Qt framework?
Goto Forum:
  


Current Time: Thu Jul 31 15:57:44 EDT 2014

Powered by FUDForum. Page generated in 0.05630 seconds