I'm using 64bit Ubuntu with the G++ Compiler. I've tried the various posts that cover enabling C++11, and what I did so far is: Added -std=c++11
to Cross G++ Compiler->Miscellaneous->Other Flags Added -std=c++0x
to C/C++-General->Preprocessor Include Paths/Macros-> CDT GCC Built-In Compiler Settings -> "Command to get Compiler Specs" and moved "CDT GCC Built-In Compiler Specs" all the way to the top. (I have also tried adding -std=c++11
to CDT GCC Built-In Compiler Settings)
I re-resolved unresolved includes, included the correct headers, and still: std::stoi is not resolved. The code does however compile if I compile without eclipse, using just the G++ and a makefile.
Aucun commentaire:
Enregistrer un commentaire