如何解决IAR“cannot open file xx”的编译问题

如何解决IAR“cannot open file xx”的编译问题

我们在使用IAR编程的时候,会遇到“cannot open source file xx”的问题。接下来详细讲解一下如何解决。

如图所示问题的现象。

右击工作空间,点击“Options...”

点击“C/C++ Compiler”。

点击“Preprocessor”。

在此对话框中添加头文件的路径。

编译之后,我们会发现编译通过,0错误,0警告。