mdk例程文件编译错误

2019-07-21 01:42发布

我从这里下载的视频文件和各种资料,然后我打开例程编译,无论是寄存器版本还是库函数都总是编译错误,比如LED的实验,后来参考了原子哥给别人发的帖子http://www.openedv.com/posts/list/10955.htm,结果还是不行,比如库函数版本,错误如下
Build target 'Target 1'
compiling main.c...
..COREcore_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
main.c: 0 warnings, 1 error
compiling stm32f10x_it.c...
..COREcore_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
stm32f10x_it.c: 0 warnings, 1 error
compiling system_stm32f10x.c...
..COREcore_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
system_stm32f10x.c: 0 warnings, 1 error
compiling led.c...
..COREcore_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..HARDWARELEDled.c: 0 warnings, 1 error
compiling delay.c...
..COREcore_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..SYSTEMdelaydelay.c: 0 warnings, 1 error
compiling sys.c...
..COREcore_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..SYSTEMsyssys.c: 0 warnings, 1 error
compiling usart.c...
..COREcore_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..SYSTEMusartusart.c: 0 warnings, 1 error
compiling core_cm3.c...
..COREcore_cm3.c(24): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>
..COREcore_cm3.c: 0 warnings, 1 error
compiling stm32f10x_gpio.c...
..COREcore_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..STM32F10x_FWLibsrcstm32f10x_gpio.c: 0 warnings, 1 error
compiling stm32f10x_rcc.c...
..COREcore_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..STM32F10x_FWLibsrcstm32f10x_rcc.c: 0 warnings, 1 error
compiling stm32f10x_usart.c...
..COREcore_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..STM32F10x_FWLibsrcstm32f10x_usart.c: 0 warnings, 1 error
compiling misc.c...
..COREcore_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..STM32F10x_FWLibsrcmisc.c: 0 warnings, 1 error
"..OBJLED.axf" - 12 Error(s), 0 Warning(s).
Target not created
下图是我按照上面的链接添加文件
然后我用寄存器版本也试了一下,结果已哭,如图

然后还是各种报错,我只是个新手,虽说开头万事难,但是我快被虐哭了。。。求救啊,已经折腾好几天了,另外还有个事,我的板子是m4的,用上面的m3的h文件真的没问题么。。。可是我没有m4的头文件啊,我自己又不会写T T
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
11条回答
低八度的小白羊
1楼-- · 2019-07-21 20:05
回复【6楼】huaiqiao:
---------------------------------
啥都没来及安装呢。。。
huaiqiao
2楼-- · 2019-07-22 00:03
回复【8楼】低八度的小白羊:
---------------------------------
是你自己的电脑还是单位的电脑,我之前就是单位的电脑上,别人安装了ADS后卸载了,但是还有ADS的环境变量。
低八度的小白羊
3楼-- · 2019-07-22 03:10
回复【9楼】huaiqiao:
---------------------------------
还好吧,是我自己的
huaiqiao
4楼-- · 2019-07-22 06:54
 精彩回答 2  元偷偷看……
低八度的小白羊
5楼-- · 2019-07-22 12:44
回复【11楼】huaiqiao:
---------------------------------
嗯哪

一周热门 更多>