打印

找不到stm32f10x_lib.h

[复制链接]
18486|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

粉丝