方式一:在Include  Files上右键 add files to folder把.h文件添加到该组下,

stm8 stvd工程头文件包含方式

添加完编译成功之后,下面窗口会多出一个预处理包含路径(若有错误没有编译成功,则看不到)

stm8 stvd工程头文件包含方式

方式二:project Settings-c compiler- category-Preprocessor---additional include directories,依次添加要包含的头文件路径

相关文章:

  • 2021-11-04
  • 2022-12-23
  • 2021-09-12
  • 2021-06-01
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2022-01-19
  • 2021-04-07
  • 2021-11-06
  • 2021-07-02
  • 2021-04-01
相关资源
相似解决方案