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

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

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

1,610 次查看
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 项奖励
回复
2 回复数

1,215 次查看
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 项奖励
回复

1,215 次查看
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 项奖励
回复