天天看點

NIOS II - Eclipse - ERROR - " Type 'xxxx' could not be resolved "

NIOS II - Eclipse - ERROR - " Type 'xxxx' could not be resolved "

打開Eclipse後,編輯c/c++,編譯時出錯:* could not be resolved ,但能夠運作,結果正确

解決方法:

       在eclipse上,project->properties->C/C++ General->indexer,将大部分選項都選中,如下圖所示:

       PS:如果都按照圖檔上的選項都選上了還是不行,則假如你的工程為C++工程,則Index unused headers as C++ files 選中,Index unused headers as C files 就别選中了,反之為C工程,則Index unused headers as C++ files不選,

NIOS II - Eclipse - ERROR - " Type 'xxxx' could not be resolved "

轉載文章:參考https://blog.51cto.com/lihaichuan/1060466

繼續閱讀