No Such File or Directory when the file hasn't moved

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

No Such File or Directory when the file hasn't moved

1,467 Views
austinm
Contributor I

I'm getting an error where a file I am including (#include "board.h") that is in a different directory is included correctly the first time I build and debug.  However, when I edit the board.h file, when I subsequently rebuild, I get the error "fatal error: board.h: No such file or directory."  Is there a reason this is happening?

0 Kudos
2 Replies

1,072 Views
BlackNight
NXP Employee
NXP Employee

Hi Austin,

Hmm, that somehow does not make any sense. Can you check what Alice has posted about the include path settings? But I assume you have not moved that file, correct? Could you post a screenshot or better the failing project?

Thanks,

Erich

0 Kudos

1,072 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Austin Milford-Rosales,

Please check "Include paths", whether includes your board.h file path:

pastedImage_1.png

Hope it helps


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos