1. 程式人生 > >在eclipse中出現Type 'xxxx' could not be resolved的解決辦法

在eclipse中出現Type 'xxxx' could not be resolved的解決辦法

此文章轉載於:http://lihaichuan.blog.51cto.com/498079/1060466

開啟Eclipse後,編輯c/c++,編譯時出錯:* could not be resolved ,但執行結果正確。解決辦法:

在Eclipse,開啟window->preferences->c/c++ ->indexer  將Indexer中的大部分選項都選上,注意區分c和c++的選項(這取決於你寫的程式碼的語言)

將選項選好後,在重新開啟即可。