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不选,
![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiIn5GcuYDNyEjMwEjMx8CXxEjMxAjMvwFduVWboNWY0RXYvwVbvNmLvR3YxUjLxM3Lc9CX6MHc0RHaiojIsJye.png)
转载文章:参考https://blog.51cto.com/lihaichuan/1060466