1 右击你的project 2 选择properties 3 c/c++ general 4 paths and symbols 5 includes——language;选择GNU c/c++ 6 重新保存project