unresolved inclusion errors

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

unresolved inclusion errors

Jump to solution
1,622 Views
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 Kudos
1 Solution
1,587 Views
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. 

View solution in original post

0 Kudos
2 Replies
1,610 Views
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 Kudos
1,588 Views
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 Kudos