unresolved inclusion errors

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

unresolved inclusion errors

跳至解决方案
1,662 次查看
User1956
Contributor II

MCUXpresso IDE v11.4.1 [Build 6260] [2021-09-15]

SDK_2.x_MIMXRT1160-EVK: Version 2.1.0

EVK1160 PCB

 

When I build my project I get unresolved inclusion errors for "usb.h" and "fsl_aoi.h". I tried the Fixup Parsers tool but it did not seem to make any difference. What is the error suggesting? Is it saying those header files aren't found?

0 项奖励
1 解答
1,627 次查看
User1956
Contributor II

Hi Erich,

So somehow in the configuration tool-peripheral tab a usb config was turned on. This generated usb libraries which called out the two I was missing. I just turned off those peripherals and now it is building fine. 

在原帖中查看解决方案

0 项奖励
2 回复数
1,650 次查看
ErichStyger
Senior Contributor V

Hi @User1956 ,

just to be sure: you are able to compile it without errors, correct?

 

One needs to understand that building and indexing by the IDE are two different things. The indexer (a kind of parser inside the IDE with its database) scans the sources and parses the compiler options to find the files.

One thing you could try is to disable the heuristics and do a Index > rebuild, see https://mcuoneclipse.com/2012/03/20/fixing-the-eclipse-index/

See as well https://mcuoneclipse.com/2021/01/10/eclipse-indexer-debug-tips/ which shows the 'path and symbols': can you check if the path to the source files in question are listed there?

 

I hope this helps,

Erich

0 项奖励
1,628 次查看
User1956
Contributor II

Hi Erich,

So somehow in the configuration tool-peripheral tab a usb config was turned on. This generated usb libraries which called out the two I was missing. I just turned off those peripherals and now it is building fine. 

0 项奖励