打开一个写好的keil程序,出现以下问题,并且运行后出错了。

2019-08-09 16:45发布

刚开始的时候 刚开始的时候
Rebuild target 'Target 1'
assembling STM32F10x.s...
compiling test.c...
test.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>
test.c: 0 warnings, 1 error
compiling delay.c...
..SYSTEMdelaydelay.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>
..SYSTEMdelaydelay.c: 0 warnings, 1 error
compiling sys.c...
..SYSTEMsyssys.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>            
..SYSTEMsyssys.c: 0 warnings, 1 error
compiling usart.c...
..SYSTEMsyssys.h(3): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>
..SYSTEMusartusart.c: 0 warnings, 1 error
compiling led.c...
..HARDWARELEDled.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>      
..HARDWARELEDled.c: 0 warnings, 1 error
compiling key.c...
..HARDWAREKEYkey.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>
..HARDWAREKEYkey.c: 0 warnings, 1 error
compiling exti.c...
..SYSTEMsyssys.h(3): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>
..HARDWAREEXTIexti.c: 0 warnings, 1 error
compiling wdg.c...
..SYSTEMsyssys.h(3): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>
..HARDWAREWDGwdg.c: 0 warnings, 1 error
compiling timer.c...
..SYSTEMsyssys.h(3): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>
..HARDWARETIMER imer.c: 0 warnings, 1 error
".TEST.axf" - 9 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:03

这几个错误全是 cannot open source input file "stm32f10x_lib.h": No such file or directory
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。