Using Eclipse Mars, I am getting the Symbol 'unique_ptr' could not be resolved
error. I tried adding -std=c++11
to CDT GCC Built-in Compiler Settings, but this didn't help. The error goes away when I reopen Eclipse, but if I make a modification to the code, the error comes back.
One simple code sample:
std::unique_ptr<String> p1;
Window > Preferences > C/C++ > Build > Settings > Discovery > CDT GCC Build-in Compiler Settings
-std=c++11
to the Command to get compiler specs
Project > C/C++ Index > Rebuild
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With