1. 程式人生 > >Eclipse CDT: Type 'std::string' could not be resolved

Eclipse CDT: Type 'std::string' could not be resolved

Eclipse CDT編寫C/C++程式碼,程式碼提示如果有 Eclipse CDT: Type 'std::string' could not be resolved 或者類似問題,而感覺標頭檔案和目錄都引用好了,可以在Project上 -> 右鍵Indexer -> Search unresolved Includes,看看還有什麼標頭檔案沒有被正常識別。一般解決裡這裡面的提醒,錯誤就沒有了。