访问手机版页面
你的位置:老古开发网 > 51单片机 > 51单片机Keil C51编程 > 正文  
Keil C51与Keil RealView MDK常见错误
内容导读:
1、安装先后顺序: 要先安装Keil C51,后安装RVMDK,否则会出现一系列的编译问题。2、Keil常见错误――last line of file ends without a newline原因及解决方法 当使用keil编译时,弹出这样的警告信息:main.c(7):

1、安装先后顺序:

要先安装Keil C51,后安装RVMDK,否则会出现一系列的编译问题。

2、Keil常见错误――last line of file ends without a newline原因及解决方法

当使用keil编译时,弹出这样的警告信息:

main.c(7): warning: #1-D: last line of file ends without a newline

这个是由于在main函数的“}”后,没有加回车。

只要在main函数的“}”后加回车键,此警告信息即可消除。

3.keil c51 不能使用:Go to Definition of....的解决方法

近来有读者问到在Keil C51中使用Go to Definition of....时,出现警告对话框:

no browse information available in'工程目录'

check-[target-options][output][browse information] then rebuild the target!

查了一些资料,原因大概有二:

1、代码中嵌有汇编,汇编代码去掉后能查看。

2、选中target1,然后点击右键,选择optionfor target 'target1',在弹出的对话框中选择output选项卡,看Browse information 选项有没有勾选,如果没有,请勾选,然后把你的工程rebuild一次。

网上相关资料:

http://blog.csdn.net/yam_killer/article/details/7673191

http://zhidao.baidu.com/question/218261369.html

http://bbs.ednchina.com/BLOG_ARTICLE_3007999.HTM

http://bbs.21ic.com/icview-171442-1-1.html

http://forum.eepw.com.cn/thread/181512/1


标签: C51,keil,mdk,realview,常见错误,
来源:互联网 作者:karen 时间:2018/8/7 11:10:02
相关阅读
推荐阅读
阅读排行
最近更新
商品推荐