Alex Rivera | Logout

Eclipse indexer can't resolve shared_ptr

Asked 2011-11-29T14:55:20.487
35

After researching this on the internet, I've been unable to get the Eclipse indexer to resolve "shared_ptr" from the C++0x additions that come with GCC 4.4.4. I made sure to create my project with the proper includes for Eclipse, so it's definitely looking in the the 4.4.4 include folders.

The program compiles and runs just fine. To access shared_ptr I'm using "#include <memory>".

Any idea what's breaking the indexer?

Edit
Report

1 Answer

50

You need to set the pre-processor symbol '__GXX_EXPERIMENTAL_CXX0X__' to the eclipse project. g++ automatically adds that when you use '-std=c++0x', but eclipse is not aware of that, so it treats those sections of the relevant headers as disabled.

answered 2011-11-29T15:05:39.353

Your Answer