STM8——cannot open source file "xx.h"错误
时间:2019-01-11 11:00:02
手机看文章
扫描二维码
随时随地手机看文章
[导读]在使用MDK5编译STM32时,新增的.c文件需要添加到 include Paths 处,否则编译时会报错。使用STM8时,用的是IAR,新增的.c文件需要添加头文件路径到 options->c/c++ Compiler->Preprocessor下的Additional include di
在使用MDK5编译STM32时,新增的.c文件需要添加到 include Paths 处,否则编译时会报错。
使用STM8时,用的是IAR,新增的.c文件需要添加头文件路径到 options->c/c++ Compiler->Preprocessor下的Additional include directories;
否则在mian函数添加头文件,会报错:cannot open source file "xx.h"错误





