×
单片机 > 单片机程序设计 > 详情

Keil C51与Keil RealView MDK常见错误

发布时间:2020-06-02 发布时间:
|

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,然后点击右键,选择 option for 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


关键字:Keil  C51  RealView  MDK  常见错误

『本文转载自网络,版权归原作者所有,如有侵权请联系删除』

热门文章 更多
单片机制作超级流水灯