error:#5:cannotopensourceinputfile"stm32f10x_lib.h":Nosuchfileordirectory

来源:互联网 发布:js点击按钮执行ctrl c 编辑:程序博客网 时间:2024/06/07 01:34

问题现象:

test.c(1):error:#5:cannotopensourceinputfile"stm32f10x_lib.h":Nosuchfileordirectory
compilingdelay.c...
..\SYSTEM\delay\delay.c(1):error:#5:cannotopensourceinputfile"stm32f10x_lib.h":Nosuchfileordirectorycompilingsys.c...
..\SYSTEM\sys\sys.c(1):error:#5:cannotopensourceinputfile"stm32f10x_lib.h":Nosuchfileordirectorycompilingusart.c...
..\SYSTEM\sys\sys.h(3):error:#5:cannotopensourceinputfile"stm32f10x_lib.h":Nosuchfileordirectorycompilingled.c...
..\HARDWARE\LED\led.c(1):error:#5:cannotopensourceinputfile"stm32f10x_lib.h":NosuchfileordirectoryTargetnotcreated


问题分析:

ST的固件库旧版本才有"stm32f10x_lib.h" ,如果使用旧库的程序移植到新库工程中引起


解决办法:


#include "stm32f10x_lib.h" ->  "#include "stm32f10x.h" 再重新 rebulid 就可以解决了 ^_^。


0 0
原创粉丝点击