您现在的位置: 主页 > MCU > 单片机技术应用 > Keil C51与Keil RealView MDK常见错误 -
本文所属标签:
为本文创立个标签吧:

Keil C51与Keil RealView MDK常见错误 -

来源: 网络用户发布,如有版权联系网管删除 2018-09-06 

[导读]1、安装先后顺序: 要先安装Keil C51,后安装RVMDK,否则会出现一系列的编译问题。2、Keil常见错误――last line of file ends without a newline原因及解决方法 当使用keil编译时,弹出这样的警告信息:main.c(7):

1、安装先后顺序:

本文引用地址: http://www.21ic.com/app/mcu/201808/784333.htm

要先安装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




              查看评论 回复



嵌入式交流网主页 > MCU > 单片机技术应用 > Keil C51与Keil RealView MDK常见错误 -
 

"Keil C51与Keil RealView MDK常见错误 -"的相关文章

网站地图

围观()