C++11 using

i’v got two problems. first i can’t include any file for example memory. when i include,it shows lots of errors! what is the problem with it?
and for the second,i can’t use any C++11 features like unique_ptr,any suggestion?

Hi peymanKOP,

To use C++11, you’ll need to set the C/C++ -> Language -> C++ Language Standard project property to either C++11 or C++11 (GNU Dialect).

Regarding includes - it seems that you’ve tried to include a C++ header in a C file - you’ll need to change the file extension to .cpp to make it compile.