STM8——cannot open source file "xx.h"错误

电子元件 4年前 (2022) aysz01
0

在使用MDK5编译STM32时,新增的.c文件需要添加到 include Paths 处,否则编译时会报错。

使用STM8时,用的是IAR,新增的.c文件需要添加头文件路径到 options->c/c++ Compiler->Preprocessor下的Additional include directories;

否则在mian函数添加头文件,会报错:cannot open source file "xx.h"错误

版权声明:aysz01 发表于 2022-08-06 10:49:51。
转载请注明:STM8——cannot open source file "xx.h"错误 | 鳌游电工

暂无评论

暂无评论...