找不到stm32f10x_lib.h

[复制链接]
19631|3
 楼主| xt3203 发表于 2012-6-22 23:05 | 显示全部楼层 |阅读模式
大家好,本人新进了一块原子的开发板,他的教程是用MDK3.8的,因为本人的电脑里已经装了MDK4.5,并且一直很喜欢,MDK4的风格,所以不想用旧的版本了,但用新版本来编译就出错了,信息如下:
Rebuild target 'Target 1'
assembling startup_stm32f10x_md.s...
compiling delay.c...
..\SYSTEM\delay\delay.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling sys.c...
..\SYSTEM\sys\sys.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling usart.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling test1.c...
test1.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
Target not created

请问有什么解决办法吗? 真的不想用旧版本。求助各位大侠!
logokfu 发表于 2012-6-23 06:17 | 显示全部楼层
需要设置下头文件目录就好了。
logokfu 发表于 2012-6-23 06:17 | 显示全部楼层
不用换编辑器版本
blowlow 发表于 2012-6-23 10:07 | 显示全部楼层
菜单:  Project->Options for target1 'target1'--> c/c++ --> include path

在这里把库的头文件目录加进去,可以用相对路径,也可以用绝对目录路径。 相对路径如果设定不对,也是找不到的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

7

主题

167

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部