error:  #5: cannot open source input file "spi.h": No such file or directory

1.出现这种问题,首先要确认头文件的命名要与文件名一致,如下:

  #ifndef _SPI_H
  #define _SPI_H

  #endif 

2.添加路径,问题即可解决

  STM32 关于头文件路径没添加错误问题(cannot open source input file "spi.h": No such file or directory)

  STM32 关于头文件路径没添加错误问题(cannot open source input file "spi.h": No such file or directory)

  STM32 关于头文件路径没添加错误问题(cannot open source input file "spi.h": No such file or directory)

3.确认OK,编译,问题解决!

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2022-01-30
  • 2022-12-23
猜你喜欢
  • 2021-08-07
  • 2021-05-20
  • 2021-10-03
  • 2021-09-30
  • 2022-12-23
  • 2021-08-25
  • 2021-08-25
相关资源
相似解决方案