1

I'm trying to use shared_ptr and for some reason it dosen't work, obviously I wrote -std=c++0x and __GXX_EXPERIMENTAL_CXX0X__ in the right places, and yet I get the error:

Description Resource Path Location Type

Symbol 'shared_ptr' could not be resolved server.h ‪/ex4‬ line 16 Semantic Error

Does anyone have an idea what I'm doing wrong?

templatetypedef
  • 362,284
  • 104
  • 897
  • 1,065
user3198219
  • 23
  • 2
  • 5

1 Answers1

1

Eclipse misses a lot of "standard" things, you have to build and let it read "-std=c++11" in the output from make. That resolves a lot of them.

EDIT: This looks like a CDT error, not a GCC/compiler error - hence this answer.

HOWEVER despite this it still misses a lot, for example std::forward I have never gotten to work, std::nullptr_t... loads, you just learn to live with them. It does put a different marker for compiler errors, 'though they both show up in problems.

I posted to the mailing list about this and never got a response.

(This answer assumes everything compiles, but you can't get CDT to recognise some things)

I've spent many hours on this, which is why I bothered to write this, stop you from waisting hours too!

Andrew Barber
  • 39,603
  • 20
  • 94
  • 123
Alec Teal
  • 5,770
  • 3
  • 23
  • 50