I just installed a fresh installation of Eclipse Mars.2 on OSx 10.8.5, and I'm having trouble using smart pointers (share_ptr, unique_ptr, etc). The IDE shows a red underline, and when I try to compile it I get error: use of undeclared identifier 'shared_ptr'.
I have
included
<memory>(which gets removed by Eclipse's "Organize includes" btw)added the symbol
__GXX_EXPERIMENTAL_CXX0X__added the symbol
__cpluspluswith the value201103Lchanged Cross G++ Compiler / Dialect / Language Standard to
-std=c++0xadded
-std=c++11to Cross G++ Compiler / Miscellaneous / Other flagsselected CDT User Setting Entries and CDT Cross Built-in compiler settings in Providers
enabled the indexer
tried fiddling around with just about any setting imaginable
And it still doesn't work.
I can use shared_ptr without any problems in both XCode and when compiling with g++ in the terminal. Also, I can use auto in Eclipse without any problems. So what's the problem with those smart pointers?
g++ --version reports g++ (MacPorts gcc48 4.8.4_0+universal) 4.8.4, in case that could have anything to do with anything?
I'm all out of ideas on this one, anyone have any suggestions?