eclipse c++11支持

1.Project settings

project右键-> properties->c/c++ build ->Settings -> GCC C++ Compiler -> Miscellaneous -> Other flags后面加上 -std=c++11

2.Workspace settings

Window-> Preference -> Build -> Settings ->Discovery -> CDT GCC Built-in Compiler Settings MinGW(shared) ->(command to get compiler specs) COMMANDEPvdD" {INPUTS}” -std=c++11

你可能感兴趣的:(eclipse)